Skip to content

Commit f3296e1

Browse files
committed
[TextAPI] Add missing flag input for <=tbdv3 formats
(cherry picked from commit dc787bc)
1 parent 01d00b4 commit f3296e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/TextAPI/TextStub.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -663,10 +663,10 @@ template <> struct MappingTraits<const InterfaceFile *> {
663663
}
664664
for (auto &Symbol : Section.WeakDefSymbols)
665665
File->addSymbol(SymbolKind::GlobalSymbol, Symbol, Targets,
666-
SymbolFlags::WeakDefined);
666+
SymbolFlags::WeakDefined | Flags);
667667
for (auto &Symbol : Section.TLVSymbols)
668668
File->addSymbol(SymbolKind::GlobalSymbol, Symbol, Targets,
669-
SymbolFlags::ThreadLocalValue);
669+
SymbolFlags::ThreadLocalValue | Flags);
670670
}
671671

672672
for (constauto &Section : Undefineds) {

0 commit comments

Comments
 (0)
close