[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Aug 18 16:31:06 PDT 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.90 -> 1.91
---
Log message:
Ignore native method when bytecompiling to llvm as these are
implemented in C and/or C++.
---
Diffs of the changes: (+8 -2)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.90 llvm-java/lib/Compiler/Compiler.cpp:1.91
--- llvm-java/lib/Compiler/Compiler.cpp:1.90 Sun Aug 15 06:06:30 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Wed Aug 18 18:30:56 2004
@@ -430,8 +430,6 @@
}
Function* compileMethodOnly(const std::string& classMethodDesc) {
- DEBUG(std::cerr << "Compiling method: " << classMethodDesc << '\n');
-
Method* method;
tie(cf_, method) = findClassAndMethod(classMethodDesc);
@@ -446,6 +444,14 @@
Function::InternalLinkage :
Function::ExternalLinkage);
+ if (method->isNative()) {
+ DEBUG(std::cerr << "Ignoring native method: ";
+ std::cerr << classMethodDesc << '\n');
+ return function;
+ }
+
+ DEBUG(std::cerr << "Compiling method: " << classMethodDesc << '\n');
+
Java::CodeAttribute* codeAttr = method->getCodeAttribute();
while (!opStack_.empty())
More information about the llvm-commits
mailing list