summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-04-28 22:25:53 +0000
committerAdrian Prantl <aprantl@apple.com>2017-04-28 22:25:53 +0000
commit6ee72d743b64b5cdd1c447c6f1cea0fd29378410 (patch)
tree71f051864ce8d781810d79ead5d710595f514f91 /clang/lib/CodeGen/CGDebugInfo.cpp
parentfed4f399d3a9b8381d9d32e7aa928855b11d7485 (diff)
downloadbcm5719-llvm-6ee72d743b64b5cdd1c447c6f1cea0fd29378410.tar.gz
bcm5719-llvm-6ee72d743b64b5cdd1c447c6f1cea0fd29378410.zip
Adapt to LLVM API change (DINamespace no longer takes line/file info).
rdar://problem/17484998 https://reviews.llvm.org/D32648 llvm-svn: 301707
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index dd32a44393c..3e543466056 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -4034,11 +4034,9 @@ CGDebugInfo::getOrCreateNameSpace(const NamespaceDecl *NSDecl) {
if (I != NameSpaceCache.end())
return cast<llvm::DINamespace>(I->second);
- unsigned LineNo = getLineNumber(NSDecl->getLocation());
- llvm::DIFile *FileD = getOrCreateFile(NSDecl->getLocation());
llvm::DIScope *Context = getDeclContextDescriptor(NSDecl);
- llvm::DINamespace *NS = DBuilder.createNameSpace(
- Context, NSDecl->getName(), FileD, LineNo, NSDecl->isInline());
+ llvm::DINamespace *NS =
+ DBuilder.createNameSpace(Context, NSDecl->getName(), NSDecl->isInline());
NameSpaceCache[NSDecl].reset(NS);
return NS;
}
OpenPOWER on IntegriCloud