Allow MCSA_WeakRef in ELF. Patch by Roman Divacky.

llvm-svn: 112834
This commit is contained in:
Benjamin Kramer 2010-09-02 17:18:32 +00:00
parent 6bf98ff491
commit 5af02b0360
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,6 @@ void MCELFStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
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 @@ void MCELFStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
SD.setExternal(true);
break;
case MCSA_WeakReference:
case MCSA_Weak:
SD.setFlags(SD.getFlags() | ELF_STB_Weak);
break;