aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-02 23:07:12 +0000
committerChris Lattner <sabre@nondot.org>2010-09-02 23:07:12 +0000
commita11a6a0abb0f09c5a381a7bb49901710a7b260f1 (patch)
treed73d055d44a861581e1118a5f1a12b9eb4fabc41 /include/llvm
parentace53f2fbc65f1e26c084c733ffbdbe3516580a6 (diff)
downloadexternal_llvm-a11a6a0abb0f09c5a381a7bb49901710a7b260f1.zip
external_llvm-a11a6a0abb0f09c5a381a7bb49901710a7b260f1.tar.gz
external_llvm-a11a6a0abb0f09c5a381a7bb49901710a7b260f1.tar.bz2
AsmPrinter has a formatted stream, pass it down through AsmAnnotationWriter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Assembly/AsmAnnotationWriter.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/llvm/Assembly/AsmAnnotationWriter.h b/include/llvm/Assembly/AsmAnnotationWriter.h
index 6d75720..1e2568d 100644
--- a/include/llvm/Assembly/AsmAnnotationWriter.h
+++ b/include/llvm/Assembly/AsmAnnotationWriter.h
@@ -32,21 +32,26 @@ public:
/// emitFunctionAnnot - This may be implemented to emit a string right before
/// the start of a function.
- virtual void emitFunctionAnnot(const Function *F, raw_ostream &OS) {}
+ virtual void emitFunctionAnnot(const Function *F,
+ formatted_raw_ostream &OS) {}
/// 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, raw_ostream &OS){
+ /// after the basic block label, but before the first instruction in the
+ /// block.
+ virtual void emitBasicBlockStartAnnot(const BasicBlock *BB,
+ formatted_raw_ostream &OS){
}
/// emitBasicBlockEndAnnot - This may be implemented to emit a string right
/// after the basic block.
- virtual void emitBasicBlockEndAnnot(const BasicBlock *BB, raw_ostream &OS){
+ virtual void emitBasicBlockEndAnnot(const BasicBlock *BB,
+ formatted_raw_ostream &OS){
}
/// emitInstructionAnnot - This may be implemented to emit a string right
/// before an instruction is emitted.
- virtual void emitInstructionAnnot(const Instruction *I, raw_ostream &OS) {}
+ virtual void emitInstructionAnnot(const Instruction *I,
+ formatted_raw_ostream &OS) {}
/// printInfoComment - This may be implemented to emit a comment to the
/// right of an instruction or global value.