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 | 869683782e0da7a5fb7aca04b681a31d1b7ae355 (patch) | |
tree | 0a361ff185bc6af7858b4b92cf41fb994c81fc50 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 4cac5b48e379a209d87aa9df191e6bb418e44a0f (diff) |
CreateTemporaryType doesn't needs its Context argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 1e287172cf..b9b970a3cf 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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()) |