aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCSectionWasm.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2021-05-10 14:58:47 -0700
committerSam Clegg <sbc@chromium.org>2021-05-12 13:31:02 -0700
commit3041b16f7322a0392810e4a14b13cacac1929ad8 (patch)
treebee0267ddadb8cab67bf9d4cef100871f97fd9a1 /llvm/lib/MC/MCSectionWasm.cpp
parentba38b72ec2833bf8c54829a0fd7a8c968e6260d4 (diff)
downloadllvm-3041b16f7322a0392810e4a14b13cacac1929ad8.zip
llvm-3041b16f7322a0392810e4a14b13cacac1929ad8.tar.gz
llvm-3041b16f7322a0392810e4a14b13cacac1929ad8.tar.bz2
[WebAssembly] Add TLS data segment flag: WASM_SEG_FLAG_TLS
Previously the linker was relying solely on the name of the segment to imply TLS. Differential Revision: https://reviews.llvm.org/D102202
Diffstat (limited to 'llvm/lib/MC/MCSectionWasm.cpp')
-rw-r--r--llvm/lib/MC/MCSectionWasm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCSectionWasm.cpp b/llvm/lib/MC/MCSectionWasm.cpp
index 9faa4ca..4599132 100644
--- a/llvm/lib/MC/MCSectionWasm.cpp
+++ b/llvm/lib/MC/MCSectionWasm.cpp
@@ -69,6 +69,8 @@ void MCSectionWasm::PrintSwitchToSection(const MCAsmInfo &MAI, const Triple &T,
OS << 'G';
if (SegmentFlags & wasm::WASM_SEG_FLAG_STRINGS)
OS << 'S';
+ if (SegmentFlags & wasm::WASM_SEG_FLAG_TLS)
+ OS << 'T';
OS << '"';