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 | 547cc6f0a5f52d378e4124417b0c5202e3815612 (patch) | |
| tree | c5f7863e025c3bb45961b0418d874c721d67f841 /llvm/lib/Target/X86 | |
| parent | f10dcfb9fb3a107262a2294121151572e7193fe0 (diff) | |
| download | bcm5719-llvm-547cc6f0a5f52d378e4124417b0c5202e3815612.tar.gz bcm5719-llvm-547cc6f0a5f52d378e4124417b0c5202e3815612.zip | |
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.
llvm-svn: 121103
Diffstat (limited to 'llvm/lib/Target/X86')
| -rw-r--r-- | llvm/lib/Target/X86/X86MCAsmInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86MCAsmInfo.cpp b/llvm/lib/Target/X86/X86MCAsmInfo.cpp index f45fdf5a3fb..7732372f203 100644 --- a/llvm/lib/Target/X86/X86MCAsmInfo.cpp +++ b/llvm/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; |

