diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-11-03 19:42:14 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-11-03 19:42:14 +0000 |
commit | bd87eb459de0b0be2785c191b69add3db65daa79 (patch) | |
tree | 3f1595e394f26ed27c1c3ca69f593af23bf67e8c /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | dbfda63695272c2d12a6a61b18b52d3961d8e1a8 (diff) | |
download | bcm5719-llvm-bd87eb459de0b0be2785c191b69add3db65daa79.tar.gz bcm5719-llvm-bd87eb459de0b0be2785c191b69add3db65daa79.zip |
Add debug info support for C++11 inline namespaces.
<rdar://problem/18616046>
llvm-svn: 285960
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 9cb76baf130..b17d2482a78 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -3848,8 +3848,8 @@ CGDebugInfo::getOrCreateNameSpace(const NamespaceDecl *NSDecl) { 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); + llvm::DINamespace *NS = DBuilder.createNameSpace( + Context, NSDecl->getName(), FileD, LineNo, NSDecl->isInline()); NameSpaceCache[NSDecl].reset(NS); return NS; } |