diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-20 22:39:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-20 22:39:57 +0000 |
commit | b1aac3362cfad63d047f52abf93e5267df13a277 (patch) | |
tree | c6cd76caec82adec0417d5a1e8d7d27d7611f5a7 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 5fc55dc3cf2331ec503236c4abefed3dcd8156af (diff) | |
download | bcm5719-llvm-b1aac3362cfad63d047f52abf93e5267df13a277.tar.gz bcm5719-llvm-b1aac3362cfad63d047f52abf93e5267df13a277.zip |
CreateTemporaryType doesn't needs its Context argument.
llvm-svn: 111688
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 1e287172cf8..b9b970a3cf8 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -868,8 +868,7 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty, // A RD->getName() is not unique. However, the debug info descriptors // are uniqued so use type name to ensure uniquness. - llvm::DIType FwdDecl = - DebugFactory.CreateTemporaryType(FDContext); + llvm::DIType FwdDecl = DebugFactory.CreateTemporaryType(); llvm::MDNode *MN = FwdDecl; llvm::TrackingVH<llvm::MDNode> FwdDeclNode = MN; @@ -986,7 +985,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, // its members. Finally, we create a descriptor for the complete type (which // may refer to the forward decl if the struct is recursive) and replace all // uses of the forward declaration with the final definition. - llvm::DIType FwdDecl = DebugFactory.CreateTemporaryType(Unit); + llvm::DIType FwdDecl = DebugFactory.CreateTemporaryType(); // If this is just a forward declaration, return it. if (ID->isForwardDecl()) |