mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-25 10:38:44 +00:00
Don't count debug info as instructions. This was
preventing the emission of the NOP on Darwin for a function with no actual code. From timberwolfmc with TEST=optllcdbg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
752e259058
commit
d014761c93
@ -558,7 +558,8 @@ void AsmPrinter::EmitFunctionBody() {
|
|||||||
for (MachineBasicBlock::const_iterator II = I->begin(), IE = I->end();
|
for (MachineBasicBlock::const_iterator II = I->begin(), IE = I->end();
|
||||||
II != IE; ++II) {
|
II != IE; ++II) {
|
||||||
// Print the assembly for the instruction.
|
// Print the assembly for the instruction.
|
||||||
if (!II->isLabel() && !II->isImplicitDef() && !II->isKill()) {
|
if (!II->isLabel() && !II->isImplicitDef() && !II->isKill() &&
|
||||||
|
!II->isDebugValue()) {
|
||||||
HasAnyRealCode = true;
|
HasAnyRealCode = true;
|
||||||
++EmittedInsts;
|
++EmittedInsts;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user