[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Nov 17 10:58:06 PST 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.145 -> 1.146
---
Log message:
Map "_" to "_1" when mangling names for JNI calls.
---
Diffs of the changes: (+2 -0)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.145 llvm-java/lib/Compiler/Compiler.cpp:1.146
--- llvm-java/lib/Compiler/Compiler.cpp:1.145 Wed Nov 17 04:32:39 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Wed Nov 17 12:57:56 2004
@@ -1177,6 +1177,8 @@
for (unsigned i = 0, e = className.size(); i != e; ++i) {
if (className[i] == '/')
funcName += '_';
+ else if (className[i] == '_')
+ funcName += "_1";
else
funcName += className[i];
}
More information about the llvm-commits
mailing list