summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-11-05 18:33:37 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-11-05 18:33:37 +0000
commit1a30c18e88b7b70ca8169d9aaee2df76fb912a4f (patch)
treeaa7f551c67c4bc172d385b0cd34f20ece49f7d17 /llvm/lib/Target
parente93520d977ac3dec8e38e4edbde23fd51bf5ffb2 (diff)
downloadbcm5719-llvm-1a30c18e88b7b70ca8169d9aaee2df76fb912a4f.tar.gz
bcm5719-llvm-1a30c18e88b7b70ca8169d9aaee2df76fb912a4f.zip
[ARM] Fix code generation for:
static __thread struct { int a; int b; } teste = {0, 0}; llvm-svn: 43722
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index 924a2df82f6..5f46b07b192 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -836,7 +836,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
if (Subtarget->isTargetELF())
O << "\t.type " << name << ",%object\n";
- if (C->isNullValue() && !I->hasSection()) {
+ if (C->isNullValue() && !I->hasSection() && !I->isThreadLocal()) {
if (I->hasExternalLinkage()) {
if (const char *Directive = TAI->getZeroFillDirective()) {
O << "\t.globl\t" << name << "\n";
OpenPOWER on IntegriCloud