diff options
author | Eric Christopher <echristo@apple.com> | 2010-05-20 00:49:07 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-05-20 00:49:07 +0000 |
commit | 27e7ffc7d40e693e6c2eed6b0ffc409e28199dee (patch) | |
tree | ae68138729ab4444d28f9d1dc20210ebdb78984a /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | de852faef9c75ecec64712c10aa519772ffbf9b0 (diff) | |
download | bcm5719-llvm-27e7ffc7d40e693e6c2eed6b0ffc409e28199dee.tar.gz bcm5719-llvm-27e7ffc7d40e693e6c2eed6b0ffc409e28199dee.zip |
Partial code for emitting thread local bss data.
llvm-svn: 104197
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index bd7d0e5324a..50a50750e8b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -310,6 +310,13 @@ void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { OutStreamer.EmitZerofill(TheSection, GVSym, Size, 1 << AlignLog); return; } + + // Handle the tbss directive on darwin which is a thread local bss directive + // like zerofill. + if (GVKind.isThreadBSS() && MAI->hasMachoTBSSDirective()) { + OutStreamer.EmitTBSSSymbol(TheSection, GVSym, Size, 1 << AlignLog); + return; + } OutStreamer.SwitchSection(TheSection); |