summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/AsmParser.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-05-18 21:16:04 +0000
committerEric Christopher <echristo@apple.com>2010-05-18 21:16:04 +0000
commit5c87be766dfa2e5e4704bfb902dcaf7ed9772ae0 (patch)
treea45739c5115d872107bfbecbd74f72ba5183cc6f /llvm/lib/MC/MCParser/AsmParser.cpp
parent663543b4d7042dd9b4056ab59ae30d0bfc005c3e (diff)
downloadbcm5719-llvm-5c87be766dfa2e5e4704bfb902dcaf7ed9772ae0.tar.gz
bcm5719-llvm-5c87be766dfa2e5e4704bfb902dcaf7ed9772ae0.zip
Make EmitTBSSSymbol take a section argument so that we can find it later.
Fix up callers and users. llvm-svn: 104057
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index 6a89df19f87..1f045ac1711 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -1536,7 +1536,10 @@ bool AsmParser::ParseDirectiveDarwinTBSS() {
if (!Sym->isUndefined())
return Error(IDLoc, "invalid symbol redefinition");
- Out.EmitTBSSSymbol(Sym, Size, Pow2Alignment ? 1 << Pow2Alignment : 0);
+ Out.EmitTBSSSymbol(Ctx.getMachOSection("__DATA", "__thread_bss",
+ MCSectionMachO::S_THREAD_LOCAL_ZEROFILL,
+ 0, SectionKind::getThreadBSS()),
+ Sym, Size, 1 << Pow2Alignment);
return false;
}
OpenPOWER on IntegriCloud