[llvm][MachO] fix adding weak def syms

the weak defined symbol flag was missing from the call site for adding
symbols which didn't cause issues because it invoked the default
parameter.
This commit is contained in:
Cyndy Ishida 2020-03-02 16:58:14 -08:00
parent d64a22a2ad
commit b796acbba2
1 changed files with 2 additions and 1 deletions

View File

@ -959,7 +959,8 @@ template <> struct MappingTraits<const InterfaceFile *> {
for (auto &sym : CurrentSection.WeakSymbols)
File->addSymbol(SymbolKind::GlobalSymbol, sym,
CurrentSection.Targets);
CurrentSection.Targets, SymbolFlags::WeakDefined);
for (auto &sym : CurrentSection.TlvSymbols)
File->addSymbol(SymbolKind::GlobalSymbol, sym,
CurrentSection.Targets,