mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Support: split object format out of environment
This is a preliminary setup change to support a renaming of Windows target triples. Split the object file format information out of the environment into a separate entity. Unfortunately, file format was previously treated as an environment with an unknown OS. This is most obvious in the ARM subtarget where the handling for macho on an arbitrary platform switches to AAPCS rather than APCS (as per Apple's needs). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -736,10 +736,10 @@ void MCObjectFileInfo::InitMCObjectFileInfo(StringRef TT, Reloc::Model relocm,
|
||||
Arch == Triple::arm || Arch == Triple::thumb ||
|
||||
Arch == Triple::ppc || Arch == Triple::ppc64 ||
|
||||
Arch == Triple::UnknownArch) &&
|
||||
(T.isOSDarwin() || T.getEnvironment() == Triple::MachO)) {
|
||||
(T.isOSDarwin() || T.isOSBinFormatMachO())) {
|
||||
Env = IsMachO;
|
||||
InitMachOMCObjectFileInfo(T);
|
||||
} else if (T.isOSWindows() && T.getEnvironment() != Triple::ELF) {
|
||||
} else if (T.isOSWindows() && !T.isOSBinFormatELF()) {
|
||||
assert((Arch == Triple::x86 || Arch == Triple::x86_64) &&
|
||||
"expected x86 or x86_64");
|
||||
Env = IsCOFF;
|
||||
|
Reference in New Issue
Block a user