diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-04-08 15:28:50 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-04-08 15:28:50 +0000 |
commit | 60db02b6feaa7fe08dfeac04a62e3c8ae4298fa1 (patch) | |
tree | 2eee216afd50f488c6c8e67bdeed3abd5a4d42c0 /lib | |
parent | 362090adf501e0aa4f39c0bf21002c26cd2eb6d7 (diff) | |
download | llvm-60db02b6feaa7fe08dfeac04a62e3c8ae4298fa1.tar.gz llvm-60db02b6feaa7fe08dfeac04a62e3c8ae4298fa1.tar.bz2 llvm-60db02b6feaa7fe08dfeac04a62e3c8ae4298fa1.tar.xz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp b/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp index 6561804661..724ea358f4 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; |