mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Allow inline asm nodes with empty bodies inside JIT.
This unbreaks explicit reg vars inside JIT, which are implemented in such hacky way :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55128 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b6135a054d
commit
62990bafa3
@ -486,9 +486,13 @@ void Emitter::emitInstruction(const MachineInstr &MI,
|
||||
default:
|
||||
assert(0 && "psuedo instructions should be removed before code emission");
|
||||
break;
|
||||
case TargetInstrInfo::INLINEASM:
|
||||
assert(0 && "JIT does not support inline asm!\n");
|
||||
case TargetInstrInfo::INLINEASM: {
|
||||
const char* Value = MI.getOperand(0).getSymbolName();
|
||||
/* We allow inline assembler nodes with empty bodies - they can
|
||||
implicitly define registers, which is ok for JIT. */
|
||||
assert((Value[0] == 0) && "JIT does not support inline asm!\n");
|
||||
break;
|
||||
}
|
||||
case TargetInstrInfo::DBG_LABEL:
|
||||
case TargetInstrInfo::EH_LABEL:
|
||||
MCE.emitLabel(MI.getOperand(0).getImm());
|
||||
|
Loading…
Reference in New Issue
Block a user