mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
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
This commit is contained in:
parent
b913863a95
commit
708e474c2f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user