mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
- Add getLSDAEncoding to the PowerPC backend.
- Greatly improve the comments to the getLSDAEncoding method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93796 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -194,4 +194,19 @@ bool PPCTargetMachine::addSimpleCodeEmitter(PassManagerBase &PM,
|
||||
return false;
|
||||
}
|
||||
|
||||
/// getLSDAEncoding - Returns the LSDA pointer encoding. The choices are 4-byte,
|
||||
/// 8-byte, and target default. The CIE is hard-coded to indicate that the LSDA
|
||||
/// pointer in the FDE section is an "sdata4", and should be encoded as a 4-byte
|
||||
/// pointer by default. However, some systems may require a different size due
|
||||
/// to bugs or other conditions. We will default to a 4-byte encoding unless the
|
||||
/// system tells us otherwise.
|
||||
///
|
||||
/// FIXME: This call-back isn't good! We should be using the correct encoding
|
||||
/// regardless of the system. However, there are some systems which have bugs
|
||||
/// that prevent this from occuring.
|
||||
DwarfLSDAEncoding::Encoding PPCTargetMachine::getLSDAEncoding() const {
|
||||
if (Subtarget.isDarwin() && Subtarget.getDarwinVers() != 10)
|
||||
return DwarfLSDAEncoding::Default;
|
||||
|
||||
return DwarfLSDAEncoding::EightByte;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user