mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
Apply patch from http://llvm.org/bugs/attachment.cgi?id=4136 now that PR5004 is
finished. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2e2b438242
commit
89ee706b6b
@ -522,7 +522,11 @@ JITDwarfEmitter::EmitCommonEHFrame(const Function* Personality) const {
|
||||
JCE->emitInt64(((intptr_t)Jit.getPointerToGlobal(Personality)));
|
||||
}
|
||||
|
||||
JCE->emitULEB128Bytes(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4);
|
||||
// LSDA encoding: This must match the encoding used in EmitEHFrame ()
|
||||
if (PointerSize == 4)
|
||||
JCE->emitULEB128Bytes(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4);
|
||||
else
|
||||
JCE->emitULEB128Bytes(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata8);
|
||||
JCE->emitULEB128Bytes(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4);
|
||||
} else {
|
||||
JCE->emitULEB128Bytes(1);
|
||||
|
Loading…
Reference in New Issue
Block a user