summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/LTO/LTO.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/LTO/LTO.h b/llvm/include/llvm/LTO/LTO.h
index 467e0365786..de182b2870e 100644
--- a/llvm/include/llvm/LTO/LTO.h
+++ b/llvm/include/llvm/LTO/LTO.h
@@ -171,6 +171,10 @@ public:
bool canBeOmittedFromSymbolTable() const {
return GV && llvm::canBeOmittedFromSymbolTable(GV);
}
+ bool isTLS() {
+ // FIXME: Expose a thread-local flag for module asm symbols.
+ return GV && GV->isThreadLocal();
+ }
Expected<const Comdat *> getComdat() const {
if (!GV)
return nullptr;
OpenPOWER on IntegriCloud