summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-08 21:26:26 +0000
committerChris Lattner <sabre@nondot.org>2010-04-08 21:26:26 +0000
commit5418dd5fdaa218e6f83b289d0a7bbeaa908eddc1 (patch)
treee4b7466edc74fc90e1febcab62c776100ed6b6ce /llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp
parent75f82345c4a4411a1d59340def27a305959255e3 (diff)
downloadbcm5719-llvm-5418dd5fdaa218e6f83b289d0a7bbeaa908eddc1.tar.gz
bcm5719-llvm-5418dd5fdaa218e6f83b289d0a7bbeaa908eddc1.zip
move elf section uniquing to MCContext. Along the way
merge XCore's section into MCSectionELF llvm-svn: 100812
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp b/llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp
index 1a0920609b1..f9ccc47b0b9 100644
--- a/llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "SystemZMCAsmInfo.h"
+#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSectionELF.h"
using namespace llvm;
@@ -21,7 +22,8 @@ SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, const StringRef &TT) {
PCSymbol = ".";
}
-MCSection *SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const{
- return MCSectionELF::Create(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
- 0, SectionKind::getMetadata(), false, Ctx);
+const MCSection *SystemZMCAsmInfo::
+getNonexecutableStackSection(MCContext &Ctx) const{
+ return Ctx.getELFSection(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
+ 0, SectionKind::getMetadata(), false);
}
OpenPOWER on IntegriCloud