1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Disable the new unknown-location code for now. It causes a major

increase in the debug line info section, and it's causing
regressions in a gdb testsuite.

llvm-svn: 103226
This commit is contained in:
Dan Gohman 2010-05-07 01:08:53 +00:00
parent 3baf2ffb17
commit f863ad3dc5
2 changed files with 21 additions and 15 deletions

View File

@ -47,6 +47,10 @@ static cl::opt<bool> PrintDbgScope("print-dbgscope", cl::Hidden,
static cl::opt<bool> DisableDebugInfoPrinting("disable-debug-info-print", cl::Hidden,
cl::desc("Disable debug info printing"));
static cl::opt<bool> UnknownLocations("use-unknown-locations", cl::Hidden,
cl::desc("Make an absense of debug location information explicit."),
cl::init(false));
namespace {
const char *DWARFGroupName = "DWARF Emission";
const char *DbgTimerName = "DWARF Debug Writer";
@ -2151,6 +2155,7 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
// Check location.
DebugLoc DL = MI->getDebugLoc();
if (DL.isUnknown()) {
if (UnknownLocations) {
// This instruction has no debug location. If the preceding instruction
// did, emit debug location information to indicate that the debug
// location is now unknown.
@ -2166,6 +2171,7 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
// If this instruction begins a scope then note down corresponding label.
if (InsnsBeginScopeSet.count(MI) != 0)
LabelsBeforeInsn[MI] = Label;
}
return;
}

View File

@ -1,4 +1,4 @@
; RUN: llc < %s -asm-verbose=false -march=x86-64 | FileCheck %s
; RUN: llc < %s -asm-verbose=false -march=x86-64 -use-unknown-locations | FileCheck %s
; The divide instruction does not have a debug location. CodeGen should
; represent this in the debug information. This is checked by a check