mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-10 02:29:32 +00:00
simplify DEBUG_WITH_TYPE usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113174 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
44b0daad44
commit
fa0d74d58e
@ -1525,30 +1525,27 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Check for ambiguous instructions.
|
// Check for ambiguous instructions.
|
||||||
DEBUG(unsigned NumAmbiguous = 0;
|
DEBUG_WITH_TYPE("ambiguous_instrs", {
|
||||||
|
unsigned NumAmbiguous = 0;
|
||||||
for (unsigned i = 0, e = Info.Instructions.size(); i != e; ++i) {
|
for (unsigned i = 0, e = Info.Instructions.size(); i != e; ++i) {
|
||||||
for (unsigned j = i + 1; j != e; ++j) {
|
for (unsigned j = i + 1; j != e; ++j) {
|
||||||
InstructionInfo &A = *Info.Instructions[i];
|
InstructionInfo &A = *Info.Instructions[i];
|
||||||
InstructionInfo &B = *Info.Instructions[j];
|
InstructionInfo &B = *Info.Instructions[j];
|
||||||
|
|
||||||
if (A.CouldMatchAmiguouslyWith(B)) {
|
if (A.CouldMatchAmiguouslyWith(B)) {
|
||||||
DEBUG_WITH_TYPE("ambiguous_instrs", {
|
|
||||||
errs() << "warning: ambiguous instruction match:\n";
|
errs() << "warning: ambiguous instruction match:\n";
|
||||||
A.dump();
|
A.dump();
|
||||||
errs() << "\nis incomparable with:\n";
|
errs() << "\nis incomparable with:\n";
|
||||||
B.dump();
|
B.dump();
|
||||||
errs() << "\n\n";
|
errs() << "\n\n";
|
||||||
});
|
|
||||||
++NumAmbiguous;
|
++NumAmbiguous;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (NumAmbiguous)
|
if (NumAmbiguous)
|
||||||
DEBUG_WITH_TYPE("ambiguous_instrs", {
|
|
||||||
errs() << "warning: " << NumAmbiguous
|
errs() << "warning: " << NumAmbiguous
|
||||||
<< " ambiguous instructions!\n";
|
<< " ambiguous instructions!\n";
|
||||||
});
|
});
|
||||||
);
|
|
||||||
|
|
||||||
// Write the output.
|
// Write the output.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user