[llvm] dc787bc - [TextAPI] Add missing flag input for <=tbdv3 formats
Cyndy Ishida via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 08:31:20 PDT 2023
Author: Cyndy Ishida
Date: 2023-09-15T08:30:28-07:00
New Revision: dc787bc94c7e10b47c4d78600d1e476b18efdc71
URL: https://github.com/llvm/llvm-project/commit/dc787bc94c7e10b47c4d78600d1e476b18efdc71
DIFF: https://github.com/llvm/llvm-project/commit/dc787bc94c7e10b47c4d78600d1e476b18efdc71.diff
LOG: [TextAPI] Add missing flag input for <=tbdv3 formats
Added:
Modified:
llvm/lib/TextAPI/TextStub.cpp
Removed:
################################################################################
diff --git a/llvm/lib/TextAPI/TextStub.cpp b/llvm/lib/TextAPI/TextStub.cpp
index 387482296b6f35a..82267af07929f7d 100644
--- a/llvm/lib/TextAPI/TextStub.cpp
+++ b/llvm/lib/TextAPI/TextStub.cpp
@@ -663,10 +663,10 @@ template <> struct MappingTraits<const InterfaceFile *> {
}
for (auto &Symbol : Section.WeakDefSymbols)
File->addSymbol(SymbolKind::GlobalSymbol, Symbol, Targets,
- SymbolFlags::WeakDefined);
+ SymbolFlags::WeakDefined | Flags);
for (auto &Symbol : Section.TLVSymbols)
File->addSymbol(SymbolKind::GlobalSymbol, Symbol, Targets,
- SymbolFlags::ThreadLocalValue);
+ SymbolFlags::ThreadLocalValue | Flags);
}
for (const auto &Section : Undefineds) {
More information about the llvm-commits
mailing list