[llvm-commits] CVS: llvm/include/llvm/Assembly/AsmAnnotationWriter.h

Chris Lattner lattner at cs.uiuc.edu
Mon Mar 8 12:52:01 PST 2004


Changes in directory llvm/include/llvm/Assembly:

AsmAnnotationWriter.h updated: 1.2 -> 1.3

---
Log message:

Add the ability to put an annotation at the end of a basic block as well.


---
Diffs of the changes:  (+9 -3)

Index: llvm/include/llvm/Assembly/AsmAnnotationWriter.h
diff -u llvm/include/llvm/Assembly/AsmAnnotationWriter.h:1.2 llvm/include/llvm/Assembly/AsmAnnotationWriter.h:1.3
--- llvm/include/llvm/Assembly/AsmAnnotationWriter.h:1.2	Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Assembly/AsmAnnotationWriter.h	Mon Mar  8 12:51:05 2004
@@ -31,9 +31,15 @@
   // 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.





More information about the llvm-commits mailing list