aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Assembly
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-08 18:51:05 +0000
committerChris Lattner <sabre@nondot.org>2004-03-08 18:51:05 +0000
commit0b6af79e627ca1222b1bf67dd555e41a3252ba77 (patch)
tree51959801947509b8fbf6c2d0f9d0bc223da0dd68 /include/llvm/Assembly
parent01945c17398ec5f2934f4a166a231e3aea17831b (diff)
downloadexternal_llvm-0b6af79e627ca1222b1bf67dd555e41a3252ba77.zip
external_llvm-0b6af79e627ca1222b1bf67dd555e41a3252ba77.tar.gz
external_llvm-0b6af79e627ca1222b1bf67dd555e41a3252ba77.tar.bz2
Add the ability to put an annotation at the end of a basic block as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly')
-rw-r--r--include/llvm/Assembly/AsmAnnotationWriter.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/llvm/Assembly/AsmAnnotationWriter.h b/include/llvm/Assembly/AsmAnnotationWriter.h
index 3beda6d..4700273 100644
--- a/include/llvm/Assembly/AsmAnnotationWriter.h
+++ b/include/llvm/Assembly/AsmAnnotationWriter.h
@@ -31,9 +31,15 @@ struct AssemblyAnnotationWriter {
// the start of a function.
virtual void emitFunctionAnnot(const Function *F, std::ostream &OS) {}
- // emitBasicBlockAnnot - This may be implemented to emit a string right after
- // the basic block label, but before the first instruction in the block.
- virtual void emitBasicBlockAnnot(const BasicBlock *BB, std::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, std::ostream &OS){
+ }
+
+ // emitBasicBlockEndAnnot - This may be implemented to emit a string right
+ // after the basic block.
+ virtual void emitBasicBlockEndAnnot(const BasicBlock *BB, std::ostream &OS){
+ }
// emitInstructionAnnot - This may be implemented to emit a string right
// before an instruction is emitted.