diff options
author | Devang Patel <dpatel@apple.com> | 2010-04-21 19:08:53 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-04-21 19:08:53 +0000 |
commit | 708e474c2ff2922786a9ea6562772d2f271dec28 (patch) | |
tree | 8e3602af32fd0fb4da8eedf34b0830459fdc0429 /lib | |
parent | b913863a95a70fcfe2c5b144c574307dc3d29d88 (diff) | |
download | llvm-708e474c2ff2922786a9ea6562772d2f271dec28.tar.gz llvm-708e474c2ff2922786a9ea6562772d2f271dec28.tar.bz2 llvm-708e474c2ff2922786a9ea6562772d2f271dec28.tar.xz |
Add command line option to disable debug info printing in .s file. This option does not impact debug info generation and preservation through earlier compile starges.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 7588bbb930..6e877c7e3a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -44,6 +44,9 @@ using namespace llvm; static cl::opt<bool> PrintDbgScope("print-dbgscope", cl::Hidden, cl::desc("Print DbgScope information for each machine instruction")); +static cl::opt<bool> DisableDebugInfoPrinting("disable-debug-info-print", cl::Hidden, + cl::desc("Disable debug info printing")); + namespace { const char *DWARFGroupName = "DWARF Emission"; const char *DbgTimerName = "DWARF Debug Writer"; @@ -1853,6 +1856,9 @@ void DwarfDebug::constructSubprogramDIE(MDNode *N) { /// content. Create global DIEs and emit initial debug info sections. /// This is inovked by the target AsmPrinter. void DwarfDebug::beginModule(Module *M) { + if (DisableDebugInfoPrinting) + return; + DebugInfoFinder DbgFinder; DbgFinder.processModule(*M); |