Adjust to new interface
authorChris Lattner <sabre@nondot.org>
Mon, 8 Mar 2004 18:51:45 +0000 (18:51 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 Mar 2004 18:51:45 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12231 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 20f94b5bc935242b3e16781026839aa072761fd9..fd3cda6148020ca2b0be062eb09de04b1fc7db40 100644 (file)
@@ -752,11 +752,13 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
   
   Out << "\n";
 
-  if (AnnotationWriter) AnnotationWriter->emitBasicBlockAnnot(BB, Out);
+  if (AnnotationWriter) AnnotationWriter->emitBasicBlockStartAnnot(BB, Out);
 
   // Output all of the instructions in the basic block...
   for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I)
     printInstruction(*I);
+
+  if (AnnotationWriter) AnnotationWriter->emitBasicBlockEndAnnot(BB, Out);
 }