Changes in directory llvm/lib/Target/X86:

X86ATTAsmPrinter.cpp updated: 1.96 -> 1.97
X86TargetAsmInfo.cpp updated: 1.31 -> 1.32
---
Log message:

External weak linkage is supported by recent binutils on mingw32.


---
Diffs of the changes:  (+2 -1)

 X86ATTAsmPrinter.cpp |    2 +-
 X86TargetAsmInfo.cpp |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.96 
llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.97
--- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.96       Tue Jan 30 14:08:38 2007
+++ llvm/lib/Target/X86/X86ATTAsmPrinter.cpp    Thu Feb 22 19:58:50 2007
@@ -117,8 +117,8 @@
       O << "\t.weak_definition\t" << CurrentFnName << "\n";
     } else if (Subtarget->isTargetCygMing()) {
       EmitAlignment(4, F);     // FIXME: This should be parameterized 
somewhere.
-      O << "\t.linkonce discard\n";
       O << "\t.globl " << CurrentFnName << "\n";
+      O << "\t.linkonce discard\n";
     } else {
       EmitAlignment(4, F);     // FIXME: This should be parameterized 
somewhere.
       O << "\t.weak " << CurrentFnName << "\n";


Index: llvm/lib/Target/X86/X86TargetAsmInfo.cpp
diff -u llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.31 
llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.32
--- llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.31       Tue Jan 30 02:04:53 2007
+++ llvm/lib/Target/X86/X86TargetAsmInfo.cpp    Thu Feb 22 19:58:50 2007
@@ -131,6 +131,7 @@
     // Set up DWARF directives
     HasLEB128 = true;  // Target asm supports leb128 directives (little-endian)
     PrivateGlobalPrefix = "L";  // Prefix for private global symbols
+    WeakRefDirective = "\t.weak\t";
     DwarfRequiresFrameSection = false;
     DwarfAbbrevSection =  "\t.section\t.debug_abbrev,\"dr\"";
     DwarfInfoSection =    "\t.section\t.debug_info,\"dr\"";



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to