X86MCAsmInfoGNUCOFF: Set PointerSize as 8 for targeting x64. It caused DW_LNE_set_add...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 8 Apr 2014 15:28:50 +0000 (15:28 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 8 Apr 2014 15:28:50 +0000 (15:28 +0000)
FIXME: I haven't investigate whether CalleeSaveStackSlotSize should be 8.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205772 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
test/DebugInfo/unconditional-branch.ll
test/MC/ELF/comp-dir.s

index 6561804661116a90587514edf8de7f84ba0877a8..724ea358f40ffa873565fd489da4d5593853a436 100644 (file)
@@ -157,8 +157,10 @@ X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) {
 void X86MCAsmInfoGNUCOFF::anchor() { }
 
 X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
-  if (Triple.getArch() == Triple::x86_64)
+  if (Triple.getArch() == Triple::x86_64) {
     PrivateGlobalPrefix = ".L";
+    PointerSize = 8;
+  }
 
   AssemblerDialect = AsmWriterFlavor;
 
index 66155b7d003799ae446afb053fa84088d4a4d483..6c31375f46443bda99e27c88467c0a4b41a532a3 100644 (file)
@@ -4,11 +4,6 @@
 ; RUN: %llc_dwarf -fast-isel=false -O0 -filetype=obj %s -o %t
 ; RUN: llvm-dwarfdump %t | FileCheck %s
 
-; FIXME: Investigating.
-; XFAIL: *
-; RUN: llc -mtriple=x86_64-mingw32 -fast-isel=false -O0 -filetype=obj %s -o %t
-; RUN: llvm-dwarfdump %t | FileCheck %s
-
 ; CHECK: {{0x[0-9a-f]+}}      1      0      1   0             0  is_stmt
 ; CHECK: {{0x[0-9a-f]+}}      2      0      1   0             0  is_stmt
 ; CHECK: {{0x[0-9a-f]+}}      4      0      1   0             0  is_stmt
index 1b91f64a502cd3a49e7ba3f8553dbdf4692de1c9..c8d996faf326b59b0c6769fc0c97bf9f5f861bd3 100644 (file)
@@ -1,5 +1,4 @@
 // REQUIRES: shell
-// XFAIL: mingw
 // RUN: llvm-mc -triple=x86_64-linux-unknown -g -fdebug-compilation-dir=/test/comp/dir %s -filetype=obj -o %t.o
 // RUN: llvm-dwarfdump -debug-dump=info %t.o | FileCheck %s