Add the ability to put an annotation at the end of a basic block as well.
authorChris Lattner <sabre@nondot.org>
Mon, 8 Mar 2004 18:51:05 +0000 (18:51 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 Mar 2004 18:51:05 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12230 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Assembly/AsmAnnotationWriter.h

index 3beda6df03d1fe46416f28665935645af289e145..4700273b844a7303dc26f4708abad239a706384c 100644 (file)
@@ -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.