summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-26 19:23:28 +0000
committerChris Lattner <sabre@nondot.org>2009-07-26 19:23:28 +0000
commit602d44fa70ada99f009b5c988f706def08f17821 (patch)
treee191ef3a45a73f9c9cd950c8083803ad3160b6e7 /llvm/lib/Target/X86/X86TargetAsmInfo.cpp
parent8953720f2307a22c444090109086641777adbd79 (diff)
downloadbcm5719-llvm-602d44fa70ada99f009b5c988f706def08f17821.tar.gz
bcm5719-llvm-602d44fa70ada99f009b5c988f706def08f17821.zip
untangle a TargetAsmInfo hack where ELFTargetAsmInfo would create a
'unnamed' bss section, but some impls would want a named one. Since they don't have consistent behavior, just make each target do their own thing, instead of doing something "sortof common" then having targets change immutable objects later. llvm-svn: 77165
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetAsmInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
index b584cb49c3c..802d04a6b3c 100644
--- a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
@@ -128,6 +128,9 @@ X86ELFTargetAsmInfo::X86ELFTargetAsmInfo(const X86TargetMachine &TM):
// Set up DWARF directives
HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
+ BSSSection_ = getUnnamedSection("\t.bss",
+ SectionFlags::Writable | SectionFlags::BSS);
+
// Debug Information
AbsoluteDebugSectionOffsets = true;
SupportsDebugInformation = true;
OpenPOWER on IntegriCloud