diff options
author | Eric Christopher <echristo@apple.com> | 2010-02-17 23:55:26 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-02-17 23:55:26 +0000 |
commit | 49cf3a71734b4dc6545c279fb8236bef5758b2d5 (patch) | |
tree | 4a164a6b07d6caf7b025764b4218f9bb75403c4d | |
parent | eb3804e39a76a267f13e72a00695f5b18c75b932 (diff) |
Fix a few unused parameter warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96533 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 2 | ||||
-rw-r--r-- | include/llvm/Pass.h | 2 | ||||
-rw-r--r-- | include/llvm/Target/TargetMachine.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index d4e8887288..8ade1bd64a 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -223,7 +223,7 @@ namespace llvm { void EmitFunctionBody(); /// EmitInstruction - Targets should implement this to emit instructions. - virtual void EmitInstruction(const MachineInstr *MI) { + virtual void EmitInstruction(const MachineInstr *) { assert(0 && "EmitInstruction not implemented"); } diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index e822a0f3db..8fc3a5307b 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -163,7 +163,7 @@ public: /// an analysis interface through multiple inheritance. If needed, it should /// override this to adjust the this pointer as needed for the specified pass /// info. - virtual void *getAdjustedAnalysisPointer(const PassInfo *PI) { + virtual void *getAdjustedAnalysisPointer(const PassInfo *) { return this; } virtual ImmutablePass *getAsImmutablePass() { return 0; } diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index c496e11926..b671ae18ce 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -189,7 +189,7 @@ public: /// is not supported, or false on success. virtual bool addPassesToEmitFile(PassManagerBase &, formatted_raw_ostream &, - CodeGenFileType Filetype, + CodeGenFileType, CodeGenOpt::Level) { return true; } |