summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-04-21 19:08:53 +0000
committerDevang Patel <dpatel@apple.com>2010-04-21 19:08:53 +0000
commit1a6e39987497d8eea51fd72f2d28241a84ab663c (patch)
tree0637f611162010ae5ea4ad90e36ae861b61b9351
parent422cb2186229df92e18b8e7511e99c676d5d8c36 (diff)
downloadbcm5719-llvm-1a6e39987497d8eea51fd72f2d28241a84ab663c.tar.gz
bcm5719-llvm-1a6e39987497d8eea51fd72f2d28241a84ab663c.zip
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.
llvm-svn: 102012
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 7588bbb9301..6e877c7e3ab 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud