From 4efbbc963f94341cb24fee90d77cc9f7e0226898 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Wed, 3 Jan 2007 11:43:14 +0000 Subject: Really big cleanup. - New target type "mingw" was introduced - Same things for both mingw & cygwin are marked as "cygming" (as in gcc) - .lcomm is supported here, so allow LLVM to use it - Correctly use underscored versions of setjmp & _longjmp for both mingw & cygwin llvm-svn: 32833 --- llvm/lib/Target/X86/X86TargetAsmInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Target/X86/X86TargetAsmInfo.cpp') diff --git a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp index e25e2690af4..6e95e89e8e0 100644 --- a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp @@ -103,7 +103,9 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) { break; case X86Subtarget::isCygwin: + case X86Subtarget::isMingw: GlobalPrefix = "_"; + LCOMMDirective = "\t.lcomm\t"; COMMDirectiveTakesAlignment = false; HasDotTypeDotSizeDirective = false; StaticCtorsSection = "\t.section .ctors,\"aw\""; -- cgit v1.2.3