diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-12-07 02:43:45 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-12-07 02:43:45 +0000 |
commit | 63fbb521631e4a4a20e26a8c950d7449b85834ea (patch) | |
tree | 47d5d5883c38bd1751ea2d08af39f3361fda9e85 /lib/Target/X86/X86MCAsmInfo.cpp | |
parent | 6a3e3053263904fa296c86dc91778f54a8bb29c5 (diff) |
lib/Target/X86/X86MCAsmInfo.cpp: [PR8741] On Win64, specify explicit PrivateGlobalPrefix as ".L".
Or, global symbols @Lxxxx might be treated as temporal symbol by MCSymbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86MCAsmInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86MCAsmInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/X86MCAsmInfo.cpp b/lib/Target/X86/X86MCAsmInfo.cpp index f45fdf5a3f..7732372f20 100644 --- a/lib/Target/X86/X86MCAsmInfo.cpp +++ b/lib/Target/X86/X86MCAsmInfo.cpp @@ -103,8 +103,10 @@ getNonexecutableStackSection(MCContext &Ctx) const { } X86MCAsmInfoCOFF::X86MCAsmInfoCOFF(const Triple &Triple) { - if (Triple.getArch() == Triple::x86_64) + if (Triple.getArch() == Triple::x86_64) { GlobalPrefix = ""; + PrivateGlobalPrefix = ".L"; + } AsmTransCBE = x86_asm_table; AssemblerDialect = AsmWriterFlavor; |