[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Mon May 24 21:27:01 PDT 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.19 -> 1.20
---
Log message:
Use better names for functions.
---
Diffs of the changes: (+7 -2)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.19 llvm-java/lib/Compiler/Compiler.cpp:1.20
--- llvm-java/lib/Compiler/Compiler.cpp:1.19 Mon May 24 21:16:34 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Mon May 24 21:24:38 2004
@@ -176,9 +176,14 @@
DEBUG(std::cerr << "compiling method: "
<< method.getName()->str() << '\n');
+ std::string name = cf.getThisClass()->getName()->str();
+ name += '/';
+ name += method.getName()->str();
+ name += method.getDescriptor()->str();
+
+ // FIXME: use proper function type
Function* function =
- module.getOrInsertFunction(method.getName()->str(),
- Type::VoidTy, 0);
+ module.getOrInsertFunction(name, Type::VoidTy, 0);
const Java::CodeAttribute* codeAttr =
Java::getCodeAttribute(method.getAttributes());
More information about the llvm-commits
mailing list