aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-27 06:17:14 +0000
committerChris Lattner <sabre@nondot.org>2009-07-27 06:17:14 +0000
commit64630569a623462f384d546addd4d9547600900e (patch)
tree5d6f2b3e804a1d954d227dd4c7a38677976d5677 /lib/Target/Sparc
parentd8310520a75c10de2678e931f984e0c500e0ee43 (diff)
downloadexternal_llvm-64630569a623462f384d546addd4d9547600900e.zip
external_llvm-64630569a623462f384d546addd4d9547600900e.tar.gz
external_llvm-64630569a623462f384d546addd4d9547600900e.tar.bz2
Eliminate getNamed/getUnnamedSection, adding a new and unified getOrCreateSection
instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r--lib/Target/Sparc/SparcTargetAsmInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Sparc/SparcTargetAsmInfo.cpp b/lib/Target/Sparc/SparcTargetAsmInfo.cpp
index 4bcaec0..59897e6 100644
--- a/lib/Target/Sparc/SparcTargetAsmInfo.cpp
+++ b/lib/Target/Sparc/SparcTargetAsmInfo.cpp
@@ -27,7 +27,7 @@ SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM)
CStringSection=".rodata.str";
// Sparc normally uses named section for BSS.
- BSSSection_ = getNamedSection("\t.bss", SectionKind::BSS);
+ BSSSection_ = getOrCreateSection("\t.bss", true, SectionKind::BSS);
}