[llvm-commits] [llvm] r112834 - /llvm/trunk/lib/MC/MCELFStreamer.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Sep 2 10:18:33 PDT 2010
Author: d0k
Date: Thu Sep 2 12:18:32 2010
New Revision: 112834
URL: http://llvm.org/viewvc/llvm-project?rev=112834&view=rev
Log:
Allow MCSA_WeakRef in ELF. Patch by Roman Divacky.
Modified:
llvm/trunk/lib/MC/MCELFStreamer.cpp
Modified: llvm/trunk/lib/MC/MCELFStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCELFStreamer.cpp?rev=112834&r1=112833&r2=112834&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCELFStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCELFStreamer.cpp Thu Sep 2 12:18:32 2010
@@ -177,7 +177,6 @@
case MCSA_Reference:
case MCSA_NoDeadStrip:
case MCSA_PrivateExtern:
- case MCSA_WeakReference:
case MCSA_WeakDefinition:
case MCSA_WeakDefAutoPrivate:
case MCSA_Invalid:
@@ -191,6 +190,7 @@
SD.setExternal(true);
break;
+ case MCSA_WeakReference:
case MCSA_Weak:
SD.setFlags(SD.getFlags() | ELF_STB_Weak);
break;
More information about the llvm-commits
mailing list