diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-08-12 18:07:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-08-12 18:07:26 +0000 |
| commit | 44f7ab454412a444b27029a8f8114b67cbaeae05 (patch) | |
| tree | 080d5a4ff89182b592037e85c96f77463096611c /llvm/lib | |
| parent | 01becebef303d13e9dd44ba85de1d4c4c8708f37 (diff) | |
| download | bcm5719-llvm-44f7ab454412a444b27029a8f8114b67cbaeae05.tar.gz bcm5719-llvm-44f7ab454412a444b27029a8f8114b67cbaeae05.zip | |
switch to the new struct api.
llvm-svn: 137482
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index b075711b7d4..62a416eed64 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -139,7 +139,7 @@ bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { return false; } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) { StructType *SSTy = cast<StructType>(SrcTy); - if (DSTy->isAnonymous() != SSTy->isAnonymous() || + if (DSTy->isLiteral() != SSTy->isLiteral() || DSTy->isPacked() != SSTy->isPacked()) return false; } else if (ArrayType *DATy = dyn_cast<ArrayType>(DstTy)) { @@ -223,7 +223,7 @@ Type *TypeMapTy::getImpl(Type *Ty) { // If this is not a named struct type, then just map all of the elements and // then rebuild the type from inside out. - if (!isa<StructType>(Ty) || cast<StructType>(Ty)->isAnonymous()) { + if (!isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral()) { // If there are no element types to map, then the type is itself. This is // true for the anonymous {} struct, things like 'float', integers, etc. if (Ty->getNumContainedTypes() == 0) @@ -302,7 +302,7 @@ Type *TypeMapTy::getImpl(Type *Ty) { // Otherwise we create a new type and resolve its body later. This will be // resolved by the top level of get(). DefinitionsToResolve.push_back(STy); - return *Entry = StructType::createNamed(STy->getContext(), ""); + return *Entry = StructType::create(STy->getContext()); } |

