[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue May 25 13:38:01 PDT 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.22 -> 1.23
---
Log message:
Create entry basic block before anything else so that it really is the
entry basic block ;-)
---
Diffs of the changes: (+4 -1)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.22 llvm-java/lib/Compiler/Compiler.cpp:1.23
--- llvm-java/lib/Compiler/Compiler.cpp:1.22 Mon May 24 22:50:51 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Tue May 25 13:35:06 2004
@@ -58,9 +58,10 @@
bc2bbMap_.clear();
bc2bbMap_.assign(codeAttr_.getCodeSize(), NULL);
+ BasicBlock* bb = new BasicBlock("entry", &function_);
+
parse(codeAttr_.getCode(), codeAttr_.getCodeSize());
- BasicBlock* bb = new BasicBlock("entry", &function_);
for (unsigned i = 0; i < bc2bbMap_.size(); ++i) {
if (bc2bbMap_[i])
bb = bc2bbMap_[i];
@@ -194,6 +195,8 @@
compileMethodInit(*function, cf, *codeAttr);
parse(codeAttr->getCode(), codeAttr->getCodeSize());
+
+ assert(function->getEntryBlock().getName() == "entry");
}
void do_aconst_null(unsigned bcI) {
More information about the llvm-commits
mailing list