diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2013-02-12 18:00:14 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2013-02-12 18:00:14 +0000 |
commit | c5ef7eee3c412b0f334e395b0cf7c363200c2f79 (patch) | |
tree | a8d4357af791569d77bc1bc307aa9329dd5bd317 /lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 9a790581c01dd6a21e6cc88b18881d08e804c4be (diff) |
Allow optionally generating pubnames section in DWARF info. Introduce
option "generate-dwarf-pubnames" to control it, set to "false" by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index dad1054872..93b00fb522 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1311,8 +1311,10 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) { addType(VariableDIE, GTy); // Add scoping info. - if (!GV.isLocalToUnit()) + if (!GV.isLocalToUnit()) { addFlag(VariableDIE, dwarf::DW_AT_external); + addGlobalName(GV.getName(), VariableDIE); + } // Add line number info. addSourceLine(VariableDIE, GV); |