mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
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
This commit is contained in:
parent
362090adf5
commit
60db02b6fe
@ -157,8 +157,10 @@ X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(const Triple &Triple) {
|
|||||||
void X86MCAsmInfoGNUCOFF::anchor() { }
|
void X86MCAsmInfoGNUCOFF::anchor() { }
|
||||||
|
|
||||||
X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
|
X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(const Triple &Triple) {
|
||||||
if (Triple.getArch() == Triple::x86_64)
|
if (Triple.getArch() == Triple::x86_64) {
|
||||||
PrivateGlobalPrefix = ".L";
|
PrivateGlobalPrefix = ".L";
|
||||||
|
PointerSize = 8;
|
||||||
|
}
|
||||||
|
|
||||||
AssemblerDialect = AsmWriterFlavor;
|
AssemblerDialect = AsmWriterFlavor;
|
||||||
|
|
||||||
|
@ -4,11 +4,6 @@
|
|||||||
; RUN: %llc_dwarf -fast-isel=false -O0 -filetype=obj %s -o %t
|
; RUN: %llc_dwarf -fast-isel=false -O0 -filetype=obj %s -o %t
|
||||||
; RUN: llvm-dwarfdump %t | FileCheck %s
|
; 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]+}} 1 0 1 0 0 is_stmt
|
||||||
; CHECK: {{0x[0-9a-f]+}} 2 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
|
; CHECK: {{0x[0-9a-f]+}} 4 0 1 0 0 is_stmt
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
// REQUIRES: shell
|
// 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-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
|
// RUN: llvm-dwarfdump -debug-dump=info %t.o | FileCheck %s
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user