1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

Fix PR4639, a ELF-TLS regression from some of my refactoring.

llvm-svn: 77336
This commit is contained in:
Chris Lattner 2009-07-28 17:57:51 +00:00
parent c74586940a
commit 986bd2bd0a
2 changed files with 15 additions and 1 deletions

View File

@ -354,7 +354,7 @@ getSectionFlagsAsString(SectionKind Kind, SmallVectorImpl<char> &Str) const {
Str.push_back('@');
const char *KindStr;
if (Kind.isBSS())
if (Kind.isBSS() || Kind.isThreadBSS())
KindStr = "nobits";
else
KindStr = "progbits";

View File

@ -0,0 +1,14 @@
; RUN: llvm-as < %s | llc -mtriple=i386-unknown-linux-gnu | FileCheck %s -check-prefix=LINUX
; PR4639
@G1 = internal thread_local global i32 0 ; <i32*> [#uses=1]
; LINUX: .section .tbss,"awT",@nobits
; LINUX: G1:
define i32* @foo() nounwind readnone {
entry:
ret i32* @G1
}