diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-01 06:23:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-01 06:23:52 +0000 |
| commit | 3088a31e96ab75f567e272dc5f6ca5fe347d6caa (patch) | |
| tree | 533c9c4da16631fa7c1c50e1f681621bdbc02212 /clang/lib/CodeGen | |
| parent | 0bb090923349f80d4b461dde91772422087efb61 (diff) | |
| download | bcm5719-llvm-3088a31e96ab75f567e272dc5f6ca5fe347d6caa.tar.gz bcm5719-llvm-3088a31e96ab75f567e272dc5f6ca5fe347d6caa.zip | |
remove ASTContext::buildObjCInterfaceType, which breaks canonical
types. It is no longer needed now that the code generator
re-lays-out interfaces if they are defines after being laid out
from a forward decl.
llvm-svn: 68194
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index bde6fba137f..c0819369b1f 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -749,7 +749,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var, std::string Name = Decl->getNameAsString(); - QualType T = M->getContext().buildObjCInterfaceType(Decl); + QualType T = M->getContext().getObjCInterfaceType(Decl); if (T->isIncompleteArrayType()) { // CodeGen turns int[] into int[1] so we'll do the same here. diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 75cf4e76aba..351f8e25270 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -1459,7 +1459,7 @@ void CGObjCMac::GenerateClass(const ObjCImplementationDecl *ID) { Interface->protocol_begin(), Interface->protocol_end()); const llvm::Type *InterfaceTy = - CGM.getTypes().ConvertType(CGM.getContext().buildObjCInterfaceType(Interface)); + CGM.getTypes().ConvertType(CGM.getContext().getObjCInterfaceType(Interface)); unsigned Flags = eClassFlags_Factory; unsigned Size = CGM.getTargetData().getTypePaddedSize(InterfaceTy); @@ -4246,9 +4246,6 @@ void CGObjCNonFragileABIMac::GenerateClass(const ObjCImplementationDecl *ID) { SuperClassGV = GetClassGlobal(ObjCClassName + RootClassName); } // FIXME: Gross - ObjCInterfaceDecl *Interface = - const_cast<ObjCInterfaceDecl*>(ID->getClassInterface()); - CGM.getTypes().ConvertType(CGM.getContext().buildObjCInterfaceType(Interface)); InstanceStart = InstanceSize = 0; if (ObjCInterfaceDecl *OID = const_cast<ObjCInterfaceDecl*>(ID->getClassInterface())) { |

