summaryrefslogtreecommitdiff
path: root/include/llvm/Assembly
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-11-04 18:11:56 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-11-04 18:11:56 +0000
commitb39e25ef2c8d8c840ec4155e57c737ac7bd4f167 (patch)
treeac7fc25cc954c15de9fdfa23fc74724a8ea0b541 /include/llvm/Assembly
parentfb067ed485cb42ce6edbe2d12ec2e8c05782c0fb (diff)
downloadllvm-b39e25ef2c8d8c840ec4155e57c737ac7bd4f167.tar.gz
llvm-b39e25ef2c8d8c840ec4155e57c737ac7bd4f167.tar.bz2
llvm-b39e25ef2c8d8c840ec4155e57c737ac7bd4f167.tar.xz
Delete names for unused parameters in inline function definitions in headers, so LLVM users can compile with -Wunused-parameter. PR11257; based on patch by Kevin Harris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly')
-rw-r--r--include/llvm/Assembly/AssemblyAnnotationWriter.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/Assembly/AssemblyAnnotationWriter.h b/include/llvm/Assembly/AssemblyAnnotationWriter.h
index 3a65f97a5b..6d1bc8c29a 100644
--- a/include/llvm/Assembly/AssemblyAnnotationWriter.h
+++ b/include/llvm/Assembly/AssemblyAnnotationWriter.h
@@ -32,30 +32,30 @@ public:
/// emitFunctionAnnot - This may be implemented to emit a string right before
/// the start of a function.
- virtual void emitFunctionAnnot(const Function *F,
- formatted_raw_ostream &OS) {}
+ virtual void emitFunctionAnnot(const Function *,
+ formatted_raw_ostream &) {}
/// emitBasicBlockStartAnnot - This may be implemented to emit a string right
/// after the basic block label, but before the first instruction in the
/// block.
- virtual void emitBasicBlockStartAnnot(const BasicBlock *BB,
- formatted_raw_ostream &OS) {
+ virtual void emitBasicBlockStartAnnot(const BasicBlock *,
+ formatted_raw_ostream &) {
}
/// emitBasicBlockEndAnnot - This may be implemented to emit a string right
/// after the basic block.
- virtual void emitBasicBlockEndAnnot(const BasicBlock *BB,
- formatted_raw_ostream &OS) {
+ virtual void emitBasicBlockEndAnnot(const BasicBlock *,
+ formatted_raw_ostream &) {
}
/// emitInstructionAnnot - This may be implemented to emit a string right
/// before an instruction is emitted.
- virtual void emitInstructionAnnot(const Instruction *I,
- formatted_raw_ostream &OS) {}
+ virtual void emitInstructionAnnot(const Instruction *,
+ formatted_raw_ostream &) {}
/// printInfoComment - This may be implemented to emit a comment to the
/// right of an instruction or global value.
- virtual void printInfoComment(const Value &V, formatted_raw_ostream &OS) {}
+ virtual void printInfoComment(const Value &, formatted_raw_ostream &) {}
};
} // End llvm namespace