diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-11-03 19:42:02 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-11-03 19:42:02 +0000 |
commit | dbfda63695272c2d12a6a61b18b52d3961d8e1a8 (patch) | |
tree | 84e60fd946f3806394c80e3b796986b6a5bf6f13 /llvm/lib/IR/DebugInfoMetadata.cpp | |
parent | 8a569174928c79af07459fb92751b36624baedde (diff) | |
download | bcm5719-llvm-dbfda63695272c2d12a6a61b18b52d3961d8e1a8.tar.gz bcm5719-llvm-dbfda63695272c2d12a6a61b18b52d3961d8e1a8.zip |
Add DWARF debug info support for C++11 inline namespaces.
This implements the DWARF 5 DW_AT_export_symbols feature:
http://dwarfstd.org/ShowIssue.php?issue=141212.1
<rdar://problem/18616046>
llvm-svn: 285959
Diffstat (limited to 'llvm/lib/IR/DebugInfoMetadata.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfoMetadata.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/IR/DebugInfoMetadata.cpp b/llvm/lib/IR/DebugInfoMetadata.cpp index ae75f80b827..278eb898966 100644 --- a/llvm/lib/IR/DebugInfoMetadata.cpp +++ b/llvm/lib/IR/DebugInfoMetadata.cpp @@ -471,11 +471,12 @@ DILexicalBlockFile *DILexicalBlockFile::getImpl(LLVMContext &Context, DINamespace *DINamespace::getImpl(LLVMContext &Context, Metadata *Scope, Metadata *File, MDString *Name, unsigned Line, - StorageType Storage, bool ShouldCreate) { + bool ExportSymbols, StorageType Storage, + bool ShouldCreate) { assert(isCanonical(Name) && "Expected canonical MDString"); - DEFINE_GETIMPL_LOOKUP(DINamespace, (Scope, File, Name, Line)); + DEFINE_GETIMPL_LOOKUP(DINamespace, (Scope, File, Name, Line, ExportSymbols)); Metadata *Ops[] = {File, Scope, Name}; - DEFINE_GETIMPL_STORE(DINamespace, (Line), Ops); + DEFINE_GETIMPL_STORE(DINamespace, (Line, ExportSymbols), Ops); } DIModule *DIModule::getImpl(LLVMContext &Context, Metadata *Scope, |