mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
add a comment in verbose-asm mode indicating why a noop is being generated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102401 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee9eb411ff
commit
d61647d306
@ -589,9 +589,10 @@ void AsmPrinter::EmitFunctionBody() {
|
|||||||
if (MAI->hasSubsectionsViaSymbols() && !HasAnyRealCode) {
|
if (MAI->hasSubsectionsViaSymbols() && !HasAnyRealCode) {
|
||||||
MCInst Noop;
|
MCInst Noop;
|
||||||
TM.getInstrInfo()->getNoopForMachoTarget(Noop);
|
TM.getInstrInfo()->getNoopForMachoTarget(Noop);
|
||||||
if (Noop.getOpcode())
|
if (Noop.getOpcode()) {
|
||||||
|
OutStreamer.AddComment("avoids zero-length function");
|
||||||
OutStreamer.EmitInstruction(Noop);
|
OutStreamer.EmitInstruction(Noop);
|
||||||
else // Target not mc-ized yet.
|
} else // Target not mc-ized yet.
|
||||||
OutStreamer.EmitRawText(StringRef("\tnop\n"));
|
OutStreamer.EmitRawText(StringRef("\tnop\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user