[vmkit-commits] [vmkit] r61639 - /vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sun Jan 4 14:05:29 PST 2009
Author: geoffray
Date: Sun Jan 4 16:05:29 2009
New Revision: 61639
URL: http://llvm.org/viewvc/llvm-project?rev=61639&view=rev
Log:
Only the class name is useful when static compiling.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp
Modified: vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp?rev=61639&r1=61638&r2=61639&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp Sun Jan 4 16:05:29 2009
@@ -129,7 +129,7 @@
GlobalVariable* varGV =
new GlobalVariable(Ty, false, GlobalValue::ExternalLinkage, 0,
- classDef->printString(), this);
+ classDef->name->printString(), this);
nativeClasses.insert(std::make_pair((Class*)classDef, varGV));
@@ -259,8 +259,7 @@
GlobalVariable* varGV =
new GlobalVariable(Ty->getContainedType(0), false,
- GlobalValue::ExternalLinkage, 0,
- cl->printString("<Java.class>"), this);
+ GlobalValue::ExternalLinkage, 0, "", this);
Constant* res = ConstantExpr::getCast(Instruction::BitCast, varGV,
JavaObjectType);
@@ -296,7 +295,7 @@
const Type* Ty = LCI->getStaticType();
varGV = new GlobalVariable(Ty->getContainedType(0), false,
GlobalValue::ExternalLinkage,
- 0, classDef->printString("<Static>"), this);
+ 0, "", this);
Constant* res = ConstantExpr::getCast(Instruction::BitCast, varGV,
ptrType);
@@ -341,9 +340,7 @@
ATy = ArrayType::get(PTy, classDef->virtualTableSize);
GlobalVariable* varGV = new GlobalVariable(ATy, true,
GlobalValue::ExternalLinkage,
- 0,
- classDef->printString("<VT>"),
- this);
+ 0, "", this);
res = ConstantExpr::getCast(Instruction::BitCast, varGV, VTType);
virtualTables.insert(std::make_pair(classDef, res));
More information about the vmkit-commits
mailing list