diff options
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 54d65cc..3112229 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -2009,11 +2009,14 @@ static const Comdat *getWasmComdat(const GlobalValue *GV) { static unsigned getWasmSectionFlags(SectionKind K) { unsigned Flags = 0; - // TODO(sbc): Add suport for K.isMergeableConst() + if (K.isThreadLocal()) + Flags |= wasm::WASM_SEG_FLAG_TLS; if (K.isMergeableCString()) Flags |= wasm::WASM_SEG_FLAG_STRINGS; + // TODO(sbc): Add suport for K.isMergeableConst() + return Flags; } |