diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/InstCount.cpp | 2 | ||||
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 4 | ||||
-rw-r--r-- | lib/Linker/LinkModules.cpp | 4 | ||||
-rw-r--r-- | lib/Target/X86/X86MCCodeEmitter.cpp | 5 | ||||
-rw-r--r-- | lib/VMCore/Verifier.cpp | 4 |
5 files changed, 10 insertions, 9 deletions
diff --git a/lib/Analysis/InstCount.cpp b/lib/Analysis/InstCount.cpp index dcbcac0..32febd6 100644 --- a/lib/Analysis/InstCount.cpp +++ b/lib/Analysis/InstCount.cpp @@ -45,7 +45,7 @@ namespace { #include "llvm/Instruction.def" - void visitInstruction(Instruction &I) { + void visitInstruction(Instruction &I) ATTRIBUTE_UNUSED { errs() << "Instruction Count does not know about " << I; llvm_unreachable(0); } diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 8f999a6..be2c1ce 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -135,8 +135,8 @@ namespace { /// @brief A class for maintaining the slot number definition /// as a placeholder for the actual definition for forward constants defs. class ConstantPlaceHolder : public ConstantExpr { - ConstantPlaceHolder(); // DO NOT IMPLEMENT - void operator=(const ConstantPlaceHolder &); // DO NOT IMPLEMENT + ConstantPlaceHolder() ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT + void operator=(const ConstantPlaceHolder &) ATTRIBUTE_UNUSED;//NOT IMPLEMENT public: // allocate space for exactly one operand void *operator new(size_t s) { diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 4891631..4984d93 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -78,8 +78,8 @@ class LinkerTypeMap : public AbstractTypeUser { typedef DenseMap<const Type*, PATypeHolder> TheMapTy; TheMapTy TheMap; - LinkerTypeMap(const LinkerTypeMap&); // DO NOT IMPLEMENT - void operator=(const LinkerTypeMap&); // DO NOT IMPLEMENT + LinkerTypeMap(const LinkerTypeMap&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT + void operator=(const LinkerTypeMap&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT public: LinkerTypeMap() {} ~LinkerTypeMap() { diff --git a/lib/Target/X86/X86MCCodeEmitter.cpp b/lib/Target/X86/X86MCCodeEmitter.cpp index b39fce1..063de19 100644 --- a/lib/Target/X86/X86MCCodeEmitter.cpp +++ b/lib/Target/X86/X86MCCodeEmitter.cpp @@ -19,12 +19,13 @@ #include "llvm/MC/MCExpr.h" #include "llvm/MC/MCInst.h" #include "llvm/Support/raw_ostream.h" +#include "llvm/Support/Compiler.h" using namespace llvm; namespace { class X86MCCodeEmitter : public MCCodeEmitter { - X86MCCodeEmitter(const X86MCCodeEmitter &); // DO NOT IMPLEMENT - void operator=(const X86MCCodeEmitter &); // DO NOT IMPLEMENT + X86MCCodeEmitter(const X86MCCodeEmitter &) ATTRIBUTE_UNUSED; // DONT IMPLEMENT + void operator=(const X86MCCodeEmitter &) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT const TargetMachine &TM; const TargetInstrInfo &TII; MCContext &Ctx; diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 8ff1551..3aaf8cb 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -151,8 +151,8 @@ namespace { SmallSetVector<const Type *, 16> Types; // Disallow copying. - TypeSet(const TypeSet &); - TypeSet &operator=(const TypeSet &); + TypeSet(const TypeSet &) ATTRIBUTE_UNUSED; + TypeSet &operator=(const TypeSet &) ATTRIBUTE_UNUSED; }; struct Verifier : public FunctionPass, public InstVisitor<Verifier> { |