diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-01-21 18:23:43 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-01-21 18:23:43 +0000 |
commit | cb6e1257ffb92a8ebad80bb62e3b331a9460f8e8 (patch) | |
tree | 96c1c82c631add5457f89774d1102b0569745bee /clang/lib/CodeGen | |
parent | 83788519a5173b3fff5eff51d153194e74a5eeed (diff) | |
download | bcm5719-llvm-cb6e1257ffb92a8ebad80bb62e3b331a9460f8e8.tar.gz bcm5719-llvm-cb6e1257ffb92a8ebad80bb62e3b331a9460f8e8.zip |
revert 199757 for buildbot breakage.
llvm-svn: 199758
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index ff17a03dccd..faf6fbba1a4 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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, |