summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-09-12 21:50:41 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-09-12 21:50:41 +0000
commitb52e23669cbd8637819d9ff7777d43cbc3bf8f31 (patch)
tree50b6f514a58df8209c56928ac50a4fa1bc041c6e /llvm/lib/AsmParser
parente4dacb750da45f4183ae67868d7283a89efe0b40 (diff)
downloadbcm5719-llvm-b52e23669cbd8637819d9ff7777d43cbc3bf8f31.tar.gz
bcm5719-llvm-b52e23669cbd8637819d9ff7777d43cbc3bf8f31.zip
IR: Represent -ggnu-pubnames with a flag on the DICompileUnit.
This allows the flag to be persisted through to LTO. Differential Revision: https://reviews.llvm.org/D37655 llvm-svn: 313078
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 a1bb8602192..f8f709a03bc 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -4099,7 +4099,8 @@ bool LLParser::ParseDICompileUnit(MDNode *&Result, bool IsDistinct) {
OPTIONAL(macros, MDField, ); \
OPTIONAL(dwoId, MDUnsignedField, ); \
OPTIONAL(splitDebugInlining, MDBoolField, = true); \
- OPTIONAL(debugInfoForProfiling, MDBoolField, = false);
+ OPTIONAL(debugInfoForProfiling, MDBoolField, = false); \
+ OPTIONAL(gnuPubnames, MDBoolField, = false);
PARSE_MD_FIELDS();
#undef VISIT_MD_FIELDS
@@ -4107,7 +4108,7 @@ bool LLParser::ParseDICompileUnit(MDNode *&Result, bool IsDistinct) {
Context, language.Val, file.Val, producer.Val, isOptimized.Val, flags.Val,
runtimeVersion.Val, splitDebugFilename.Val, emissionKind.Val, enums.Val,
retainedTypes.Val, globals.Val, imports.Val, macros.Val, dwoId.Val,
- splitDebugInlining.Val, debugInfoForProfiling.Val);
+ splitDebugInlining.Val, debugInfoForProfiling.Val, gnuPubnames.Val);
return false;
}
OpenPOWER on IntegriCloud