diff options
author | Eric Christopher <echristo@apple.com> | 2011-11-09 05:24:07 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-11-09 05:24:07 +0000 |
commit | dfa30e1ab243990eda4732a6dffb91e965e7a755 (patch) | |
tree | 3880482f1dcc42d2738376ddd8ad85c253785342 /lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 5786b4cdc118a7fbcdae238e264a884691ab43b7 (diff) |
Remove the pubnames section, no one consumes it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 3d353b3b95..a68da04907 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1076,11 +1076,9 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) { addType(VariableDIE, GTy); // Add scoping info. - if (!GV.isLocalToUnit()) { + if (!GV.isLocalToUnit()) addUInt(VariableDIE, dwarf::DW_AT_external, dwarf::DW_FORM_flag, 1); - // Expose as global. - addGlobal(GV.getName(), VariableDIE); - } + // Add line number info. addSourceLine(VariableDIE, GV); // Add to context owner. |