From: Anton Korobeynikov Date: Wed, 9 Jul 2008 13:18:38 +0000 (+0000) Subject: Use 'llvm-linkonce' consistently X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a2d330717bde9408b2639b2053f7ef1436d960a7;p=oota-llvm.git Use 'llvm-linkonce' consistently git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53294 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index 8e34fc30ec5..433330c146e 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -240,15 +240,15 @@ TargetAsmInfo::SectionFlagsForGlobal(const GlobalValue *GV, // Some lame default implementation if (strcmp(name, ".bss") == 0 || strncmp(name, ".bss.", 5) == 0 || - strncmp(name, ".gnu.linkonce.b.", 16) == 0) + strncmp(name, ".llvm.linkonce.b.", 17) == 0) flags |= SectionFlags::BSS; else if (strcmp(name, ".tdata") == 0 || strncmp(name, ".tdata.", 7) == 0 || - strncmp(name, ".gnu.linkonce.td.", 17) == 0) + strncmp(name, ".llvm.linkonce.td.", 18) == 0) flags |= SectionFlags::TLS; else if (strcmp(name, ".tbss") == 0 || strncmp(name, ".tbss.", 6) == 0 || - strncmp(name, ".gnu.linkonce.tb.", 17) == 0) + strncmp(name, ".llvm.linkonce.tb.", 18) == 0) flags |= SectionFlags::BSS | SectionFlags::TLS; }