mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
MC: fix MCAsmInfo usage for windows-itanium
Windows itanium uses the GNUCOFF assmebly format, not ELF. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1919beac0d
commit
a056166dc2
@ -272,7 +272,8 @@ static MCAsmInfo *createX86MCAsmInfo(const MCRegisterInfo &MRI, StringRef TT) {
|
||||
MAI = new X86ELFMCAsmInfo(TheTriple);
|
||||
} else if (TheTriple.isWindowsMSVCEnvironment()) {
|
||||
MAI = new X86MCAsmInfoMicrosoft(TheTriple);
|
||||
} else if (TheTriple.isOSCygMing()) {
|
||||
} else if (TheTriple.isOSCygMing() ||
|
||||
TheTriple.isWindowsItaniumEnvironment()) {
|
||||
MAI = new X86MCAsmInfoGNUCOFF(TheTriple);
|
||||
} else {
|
||||
// The default is ELF.
|
||||
|
6
test/MC/X86/x86-itanium.ll
Normal file
6
test/MC/X86/x86-itanium.ll
Normal file
@ -0,0 +1,6 @@
|
||||
; RUN: llc -mtriple i686-windows-itanium -filetype asm -o - %s | FileCheck %s
|
||||
|
||||
@var = common global i32 0, align 4
|
||||
|
||||
; CHECK-NOT: .type _var,@object
|
||||
|
Loading…
x
Reference in New Issue
Block a user