[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Sun Dec 5 16:20:22 PST 2004



Changes in directory llvm-java/lib/Compiler:

Compiler.cpp updated: 1.166 -> 1.167
---
Log message:

Prettify array vtable names.


---
Diffs of the changes:  (+2 -2)

Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.166 llvm-java/lib/Compiler/Compiler.cpp:1.167
--- llvm-java/lib/Compiler/Compiler.cpp:1.166	Sun Dec  5 15:53:31 2004
+++ llvm-java/lib/Compiler/Compiler.cpp	Sun Dec  5 18:20:11 2004
@@ -844,7 +844,7 @@
 #endif
 
       const std::string& globalName =
-        elementTy->getDescription() + "<vtable>";
+        elementTy->getDescription() + "[]<vtable>";
 
       llvm::Constant* vtable = ConstantStruct::get(init);
       module_.addTypeName(globalName, vtable->getType());
@@ -868,7 +868,7 @@
         true,
         GlobalVariable::ExternalLinkage,
         ConstantArray::get(vtablesArrayTy, vi.superVtables),
-        elementTy->getDescription() + "<superclassesvtables>",
+        elementTy->getDescription() + "[]<superclassesvtables>",
         &module_);
 
       typeInfoInit.push_back(






More information about the llvm-commits mailing list