summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-11-03 19:42:02 +0000
committerAdrian Prantl <aprantl@apple.com>2016-11-03 19:42:02 +0000
commitdbfda63695272c2d12a6a61b18b52d3961d8e1a8 (patch)
tree84e60fd946f3806394c80e3b796986b6a5bf6f13 /llvm/lib/AsmParser
parent8a569174928c79af07459fb92751b36624baedde (diff)
downloadbcm5719-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/AsmParser')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 961ae65425b..2b8d2f81011 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -4092,12 +4092,13 @@ bool LLParser::ParseDINamespace(MDNode *&Result, bool IsDistinct) {
REQUIRED(scope, MDField, ); \
OPTIONAL(file, MDField, ); \
OPTIONAL(name, MDStringField, ); \
- OPTIONAL(line, LineField, );
+ OPTIONAL(line, LineField, ); \
+ OPTIONAL(exportSymbols, MDBoolField, );
PARSE_MD_FIELDS();
#undef VISIT_MD_FIELDS
Result = GET_OR_DISTINCT(DINamespace,
- (Context, scope.Val, file.Val, name.Val, line.Val));
+ (Context, scope.Val, file.Val, name.Val, line.Val, exportSymbols.Val));
return false;
}
OpenPOWER on IntegriCloud