mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 16:31:33 +00:00
Remove little used statistical counter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b6e7cd655c
commit
51a04adc5e
@ -56,10 +56,6 @@ static cl::opt<bool> UnknownLocations("use-unknown-locations", cl::Hidden,
|
|||||||
cl::desc("Make an absence of debug location information explicit."),
|
cl::desc("Make an absence of debug location information explicit."),
|
||||||
cl::init(false));
|
cl::init(false));
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
STATISTIC(BlocksWithoutLineNo, "Number of blocks without any line number");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
const char *DWARFGroupName = "DWARF Emission";
|
const char *DWARFGroupName = "DWARF Emission";
|
||||||
const char *DbgTimerName = "DWARF Debug Writer";
|
const char *DbgTimerName = "DWARF Debug Writer";
|
||||||
@ -1861,37 +1857,12 @@ static DebugLoc FindFirstDebugLoc(const MachineFunction *MF) {
|
|||||||
return DebugLoc();
|
return DebugLoc();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
/// CheckLineNumbers - Count basicblocks whose instructions do not have any
|
|
||||||
/// line number information.
|
|
||||||
static void CheckLineNumbers(const MachineFunction *MF) {
|
|
||||||
for (MachineFunction::const_iterator I = MF->begin(), E = MF->end();
|
|
||||||
I != E; ++I) {
|
|
||||||
bool FoundLineNo = false;
|
|
||||||
for (MachineBasicBlock::const_iterator II = I->begin(), IE = I->end();
|
|
||||||
II != IE; ++II) {
|
|
||||||
const MachineInstr *MI = II;
|
|
||||||
if (!MI->getDebugLoc().isUnknown()) {
|
|
||||||
FoundLineNo = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!FoundLineNo && I->size())
|
|
||||||
++BlocksWithoutLineNo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/// beginFunction - Gather pre-function debug information. Assumes being
|
/// beginFunction - Gather pre-function debug information. Assumes being
|
||||||
/// emitted immediately after the function entry point.
|
/// emitted immediately after the function entry point.
|
||||||
void DwarfDebug::beginFunction(const MachineFunction *MF) {
|
void DwarfDebug::beginFunction(const MachineFunction *MF) {
|
||||||
if (!MMI->hasDebugInfo()) return;
|
if (!MMI->hasDebugInfo()) return;
|
||||||
if (!extractScopeInformation()) return;
|
if (!extractScopeInformation()) return;
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
CheckLineNumbers(MF);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
FunctionBeginSym = Asm->GetTempSymbol("func_begin",
|
FunctionBeginSym = Asm->GetTempSymbol("func_begin",
|
||||||
Asm->getFunctionNumber());
|
Asm->getFunctionNumber());
|
||||||
// Assumes in correct section after the entry point.
|
// Assumes in correct section after the entry point.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user