summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-01-21 18:23:43 +0000
committerAdrian Prantl <aprantl@apple.com>2014-01-21 18:23:43 +0000
commit0627310f5d0f2aae9f6198df5997ea5042e90077 (patch)
treed1c356d98b8af16dab9c46d00aaf0c8375e86e66 /lib/CodeGen/CGDebugInfo.cpp
parent5f7dfbf84a9b8c55b1f372b8d41adb7d8e8ebff9 (diff)
downloadclang-0627310f5d0f2aae9f6198df5997ea5042e90077.tar.gz
clang-0627310f5d0f2aae9f6198df5997ea5042e90077.tar.bz2
clang-0627310f5d0f2aae9f6198df5997ea5042e90077.tar.xz
revert 199757 for buildbot breakage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index ff17a03dcc..faf6fbba1a 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -739,16 +739,14 @@ llvm::DIType CGDebugInfo::CreateType(const TypedefType *Ty, llvm::DIFile Unit) {
return llvm::DIType();
// We don't set size information, but do specify where the typedef was
// declared.
- SourceLocation Loc = Ty->getDecl()->getLocation();
- llvm::DIFile File = getOrCreateFile(Loc);
- unsigned Line = getLineNumber(Loc);
+ unsigned Line = getLineNumber(Ty->getDecl()->getLocation());
const TypedefNameDecl *TyDecl = Ty->getDecl();
llvm::DIDescriptor TypedefContext =
getContextDescriptor(cast<Decl>(Ty->getDecl()->getDeclContext()));
return
- DBuilder.createTypedef(Src, TyDecl->getName(), File, Line, TypedefContext);
+ DBuilder.createTypedef(Src, TyDecl->getName(), Unit, Line, TypedefContext);
}
llvm::DIType CGDebugInfo::CreateType(const FunctionType *Ty,