[llvm-commits] CVS: llvm-java/lib/Compiler/BasicBlockBuilder.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Oct 28 01:26:43 PDT 2004



Changes in directory llvm-java/lib/Compiler:

BasicBlockBuilder.h updated: 1.1 -> 1.2
---
Log message:

Make exception handler targets start of basic blocks.


---
Diffs of the changes:  (+4 -0)

Index: llvm-java/lib/Compiler/BasicBlockBuilder.h
diff -u llvm-java/lib/Compiler/BasicBlockBuilder.h:1.1 llvm-java/lib/Compiler/BasicBlockBuilder.h:1.2
--- llvm-java/lib/Compiler/BasicBlockBuilder.h:1.1	Mon Oct 18 11:38:37 2004
+++ llvm-java/lib/Compiler/BasicBlockBuilder.h	Thu Oct 28 03:26:32 2004
@@ -46,6 +46,10 @@
 
       BasicBlock* bb = getOrCreateBasicBlockAt(0);
 
+      const CodeAttribute::Exceptions& exceptions = c->getExceptions();
+      for (unsigned i = 0, e = exceptions.size(); i != e; ++i)
+        getOrCreateBasicBlockAt(exceptions[i]->getHandlerPc());
+
       parse(c->getCode(), 0, c->getCodeSize());
 
       for (BC2BBMap::const_iterator i = bc2bbMap_.begin(), e = bc2bbMap_.end();






More information about the llvm-commits mailing list