mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Retrying r91337:
The CIE says that the LSDA point in the FDE section is an "sdata4". That's fine, but we need it to actually be 4-bytes in the FDE for some platforms. Allow individual platforms to decide for themselves. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -249,3 +249,10 @@ void X86TargetMachine::setCodeModelForJIT() {
|
||||
else
|
||||
setCodeModel(CodeModel::Small);
|
||||
}
|
||||
|
||||
DwarfLSDAEncoding::Encoding X86TargetMachine::getLSDAEncoding() const {
|
||||
if (Subtarget.isTargetDarwin() && Subtarget.getDarwinVers() > 10)
|
||||
return DwarfLSDAEncoding::FourByte;
|
||||
|
||||
return DwarfLSDAEncoding::Default;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user