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
This commit is contained in:
@@ -127,7 +127,7 @@ DICompileUnit *DIBuilder::createCompileUnit(
|
||||
unsigned Lang, DIFile *File, StringRef Producer, bool isOptimized,
|
||||
StringRef Flags, unsigned RunTimeVer, StringRef SplitName,
|
||||
DICompileUnit::DebugEmissionKind Kind, uint64_t DWOId,
|
||||
bool SplitDebugInlining, bool DebugInfoForProfiling) {
|
||||
bool SplitDebugInlining, bool DebugInfoForProfiling, bool GnuPubnames) {
|
||||
|
||||
assert(((Lang <= dwarf::DW_LANG_Fortran08 && Lang >= dwarf::DW_LANG_C89) ||
|
||||
(Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)) &&
|
||||
@@ -137,7 +137,7 @@ DICompileUnit *DIBuilder::createCompileUnit(
|
||||
CUNode = DICompileUnit::getDistinct(
|
||||
VMContext, Lang, File, Producer, isOptimized, Flags, RunTimeVer,
|
||||
SplitName, Kind, nullptr, nullptr, nullptr, nullptr, nullptr, DWOId,
|
||||
SplitDebugInlining, DebugInfoForProfiling);
|
||||
SplitDebugInlining, DebugInfoForProfiling, GnuPubnames);
|
||||
|
||||
// Create a named metadata so that it is easier to find cu in a module.
|
||||
NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu");
|
||||
|
||||
Reference in New Issue
Block a user