[cfe-commits] r55304 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Daniel Dunbar
daniel at zuster.org
Sun Aug 24 23:28:15 PDT 2008
Author: ddunbar
Date: Mon Aug 25 01:28:15 2008
New Revision: 55304
URL: http://llvm.org/viewvc/llvm-project?rev=55304&view=rev
Log:
Name struct types generated for Obj-C classes.
Modified:
cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=55304&r1=55303&r2=55304&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Mon Aug 25 01:28:15 2008
@@ -318,7 +318,9 @@
ObjCInterfaceType OIT = cast<ObjCInterfaceType>(Ty);
std::vector<const llvm::Type*> IvarTypes;
CollectObjCIvarTypes(OIT.getDecl(), IvarTypes);
- return llvm::StructType::get(IvarTypes);
+ llvm::Type *T = llvm::StructType::get(IvarTypes);
+ TheModule.addTypeName(std::string("struct.") + OIT.getDecl()->getName(), T);
+ return T;
}
case Type::ObjCQualifiedInterface: {
More information about the cfe-commits
mailing list