mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
MC: simplify object file selection for Windows
Windows always uses COFF unless Windows ELF is in use. Rather than checking if Windows, MinGW, or Cygwin is being targeted, just check if the target OS is windows and that it is not an ELF environment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203159 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e54158504f
commit
5219b0f586
@ -739,10 +739,9 @@ void MCObjectFileInfo::InitMCObjectFileInfo(StringRef TT, Reloc::Model relocm,
|
||||
(T.isOSDarwin() || T.getEnvironment() == Triple::MachO)) {
|
||||
Env = IsMachO;
|
||||
InitMachOMCObjectFileInfo(T);
|
||||
} else if ((Arch == Triple::x86 || Arch == Triple::x86_64) &&
|
||||
(T.getEnvironment() != Triple::ELF) &&
|
||||
(T.getOS() == Triple::MinGW32 || T.getOS() == Triple::Cygwin ||
|
||||
T.getOS() == Triple::Win32)) {
|
||||
} else if (T.isOSWindows() && T.getEnvironment() != Triple::ELF) {
|
||||
assert((Arch == Triple::x86 || Arch == Triple::x86_64) &&
|
||||
"expected x86 or x86_64");
|
||||
Env = IsCOFF;
|
||||
InitCOFFMCObjectFileInfo(T);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user