mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Do not accidently initialize NumDbgValueLost and NumDbgLineLost counts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85b0f468cf
commit
ed4edf9e5f
@ -80,8 +80,6 @@ static void collect(Function &F, std::set<unsigned> &Lines) {
|
||||
void DebugInfoProbeImpl::initialize(StringRef PName, Function &F) {
|
||||
if (!EnableDebugInfoProbe) return;
|
||||
PassName = PName;
|
||||
NumDbgLineLost = 0;
|
||||
NumDbgValueLost = 0;
|
||||
|
||||
LineNos.clear();
|
||||
DbgVariables.clear();
|
||||
@ -121,6 +119,8 @@ void DebugInfoProbeImpl::report() {
|
||||
<< PassName << "\n";
|
||||
delete OutStream;
|
||||
}
|
||||
NumDbgLineLost = 0;
|
||||
NumDbgValueLost = 0;
|
||||
}
|
||||
|
||||
/// finalize - Collect information after running an optimization pass. This
|
||||
@ -135,7 +135,7 @@ void DebugInfoProbeImpl::finalize(Function &F) {
|
||||
E = LineNos.end(); I != E; ++I) {
|
||||
unsigned LineNo = *I;
|
||||
if (LineNos2.count(LineNo) == 0) {
|
||||
DEBUG(dbgs() << "Losing dbg info intrinsic at line " << LineNo << " ");
|
||||
DEBUG(dbgs() << "DebugInfoProbe: Losing dbg info intrinsic at line " << LineNo << "\n");
|
||||
++NumDbgLineLost;
|
||||
}
|
||||
}
|
||||
@ -161,7 +161,7 @@ void DebugInfoProbeImpl::finalize(Function &F) {
|
||||
for (std::set<MDNode *>::iterator I = DbgVariables.begin(),
|
||||
E = DbgVariables.end(); I != E; ++I) {
|
||||
if (DbgVariables2.count(*I) == 0) {
|
||||
DEBUG(dbgs() << "Losing dbg info for variable: ");
|
||||
DEBUG(dbgs() << "DebugInfoProbe: Losing dbg info for variable: ");
|
||||
DEBUG((*I)->print(dbgs()));
|
||||
++NumDbgValueLost;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user