From: NAKAMURA Takumi Date: Tue, 8 Apr 2014 15:28:50 +0000 (+0000) Subject: X86MCAsmInfoGNUCOFF: Set PointerSize as 8 for targeting x64. It caused DW_LNE_set_add... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=60db02b6feaa7fe08dfeac04a62e3c8ae4298fa1;p=oota-llvm.git X86MCAsmInfoGNUCOFF: Set PointerSize as 8 for targeting x64. It caused DW_LNE_set_address was misemitted on x64. 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 --- diff --git a/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp b/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp index 65618046611..724ea358f40 100644 --- a/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp +++ b/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp @@ -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; diff --git a/test/DebugInfo/unconditional-branch.ll b/test/DebugInfo/unconditional-branch.ll index 66155b7d003..6c31375f464 100644 --- a/test/DebugInfo/unconditional-branch.ll +++ b/test/DebugInfo/unconditional-branch.ll @@ -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 diff --git a/test/MC/ELF/comp-dir.s b/test/MC/ELF/comp-dir.s index 1b91f64a502..c8d996faf32 100644 --- a/test/MC/ELF/comp-dir.s +++ b/test/MC/ELF/comp-dir.s @@ -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