[LLVMdev] Typo in IsLegalToCallImmediateAddr?
Rafael Ávila de Espíndola
rafael.espindola at gmail.com
Fri Oct 21 11:05:30 PDT 2011
> Could be, echristo, bigcheese, would this be correct for Mach-O and COFF?
bigcheese noted on IRC that the test crashes the COFF emitter. For some
reason I am always getting
movl $256, %eax ## imm = 0x100
calll *%eax
on darwin already, so I guess you are right, the correct would be
isTargetELF() && TM.getRelocationModel() == Reloc::Static;
Please include a test with the commit :-)
Cheers,
Rafael
More information about the llvm-dev
mailing list