[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun Mar 6 01:35:20 PST 2005
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.225 -> 1.226
---
Log message:
Do not use the same names for local variables and globals.
---
Diffs of the changes: (+2 -2)
Compiler.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.225 llvm-java/lib/Compiler/Compiler.cpp:1.226
--- llvm-java/lib/Compiler/Compiler.cpp:1.225 Sun Feb 20 11:03:49 2005
+++ llvm-java/lib/Compiler/Compiler.cpp Sun Mar 6 03:35:09 2005
@@ -2110,7 +2110,7 @@
new CastInst(objRef, ObjectBaseRefTy, TMP, currentBB_);
Value* vtable = new CallInst(getVtable_, objBase, TMP, currentBB_);
vtable = new CastInst(vtable, vi->vtable->getType(),
- className + "<vtable>", currentBB_);
+ className + ".vtable", currentBB_);
std::vector<Value*> indices(1, ConstantUInt::get(Type::UIntTy, 0));
assert(vi->m2iMap.find(methodDescr) != vi->m2iMap.end() &&
"could not find slot for virtual function!");
@@ -2203,7 +2203,7 @@
Value* interfaceVTable =
new GetElementPtrInst(interfaceVTables, indices, TMP, currentBB_);
interfaceVTable =
- new LoadInst(interfaceVTable, className + "<vtable>", currentBB_);
+ new LoadInst(interfaceVTable, className + ".vtable", currentBB_);
interfaceVTable =
new CastInst(interfaceVTable, vi->vtable->getType(), TMP, currentBB_);
// Get the function pointer.
More information about the llvm-commits
mailing list