mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Clarify what mysterious check means.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f870e566ee
commit
8886c495a3
@ -300,6 +300,9 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
||||
for (MachineBasicBlock::const_iterator
|
||||
II = MBB->begin(), IE = MBB->end(); II != IE; ++II) {
|
||||
const TargetInstrDesc &TID = TM.getInstrInfo()->get(II->getOpcode());
|
||||
|
||||
// Operand 1 of an inline asm instruction indicates whether the asm
|
||||
// needs stack or not.
|
||||
if ((II->isInlineAsm() && II->getOperand(1).getImm()) ||
|
||||
(TID.isCall() && !TID.isReturn())) {
|
||||
MFI->setHasCalls(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user