mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-23 02:44:32 +00:00
MC-COFF: Fix symbol storage class for globals
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b2ef4c1235
commit
81100d0608
@ -414,7 +414,7 @@ void WinCOFFObjectWriter::DefineSymbol(MCSymbolData const &SymbolData,
|
||||
bool external = SymbolData.isExternal() || (SymbolData.Fragment == NULL);
|
||||
|
||||
coff_symbol->Data.StorageClass =
|
||||
external ? COFF::IMAGE_SYM_CLASS_EXTERNAL : COFF::IMAGE_SYM_CLASS_LABEL;
|
||||
external ? COFF::IMAGE_SYM_CLASS_EXTERNAL : COFF::IMAGE_SYM_CLASS_STATIC;
|
||||
}
|
||||
|
||||
if (SymbolData.getFlags() & COFF::SF_WeakReference) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user