diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-12 21:50:55 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-12 21:50:55 +0000 |
commit | 876da0294a258a6cbbb2cd0b60a72b620d483a32 (patch) | |
tree | f2a047c79bb7d36482a35af12ab689ad901f49f0 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | b52e23669cbd8637819d9ff7777d43cbc3bf8f31 (diff) | |
download | bcm5719-llvm-876da0294a258a6cbbb2cd0b60a72b620d483a32.tar.gz bcm5719-llvm-876da0294a258a6cbbb2cd0b60a72b620d483a32.zip |
Remove -generate-dwarf-pub-sections flag.
This flag is unnecessary for testing because we can get the coverage
we need by adjusting CU attributes.
Differential Revision: https://reviews.llvm.org/D37725
llvm-svn: 313079
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 3892d06e9b0..8b732765bf3 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -52,16 +52,6 @@ using namespace llvm; -enum DefaultOnOff { Default, Enable, Disable }; - -static cl::opt<DefaultOnOff> -DwarfPubSections("generate-dwarf-pub-sections", cl::Hidden, - cl::desc("Generate DWARF pubnames and pubtypes sections"), - cl::values(clEnumVal(Default, "Default for platform"), - clEnumVal(Enable, "Enabled"), - clEnumVal(Disable, "Disabled")), - cl::init(Default)); - DwarfCompileUnit::DwarfCompileUnit(unsigned UID, const DICompileUnit *Node, AsmPrinter *A, DwarfDebug *DW, DwarfFile *DWU) @@ -771,10 +761,7 @@ bool DwarfCompileUnit::hasDwarfPubSections() const { if (CUNode->getGnuPubnames()) return true; - if (DwarfPubSections == Default) - return DD->tuneForGDB() && !includeMinimalInlineScopes(); - - return DwarfPubSections == Enable; + return DD->tuneForGDB() && !includeMinimalInlineScopes(); } /// addGlobalName - Add a new global name to the compile unit. |