mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Tidied up target triple OS detection. NFC
Use Triple::isOS*() helper functions where possible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -401,7 +401,7 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
|
||||
// platform.
|
||||
EHSectionType = ELF::SHT_PROGBITS;
|
||||
EHSectionFlags = ELF::SHF_ALLOC;
|
||||
if (T.getOS() == Triple::Solaris) {
|
||||
if (T.isOSSolaris()) {
|
||||
if (T.getArch() == Triple::x86_64)
|
||||
EHSectionType = ELF::SHT_X86_64_UNWIND;
|
||||
else
|
||||
|
Reference in New Issue
Block a user