[llvm-commits] [llvm] r121103 - /llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp

NAKAMURA Takumi geek4civic at gmail.com
Mon Dec 6 18:43:45 PST 2010


Author: chapuni
Date: Mon Dec  6 20:43:45 2010
New Revision: 121103

URL: http://llvm.org/viewvc/llvm-project?rev=121103&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp

Modified: llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp?rev=121103&r1=121102&r2=121103&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp Mon Dec  6 20:43:45 2010
@@ -103,8 +103,10 @@
 }
 
 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;





More information about the llvm-commits mailing list