diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 04:28:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 04:28:49 +0000 |
commit | c85dca66e68c9fa6ffa8471c64113b12d8d94fb1 (patch) | |
tree | 824d5c8c6638eb390436a8923d6435e5b94226ef /lib/Target/SystemZ | |
parent | 5c96c69161aa4480c432027e363d0ea1aa34acee (diff) | |
download | external_llvm-c85dca66e68c9fa6ffa8471c64113b12d8d94fb1.zip external_llvm-c85dca66e68c9fa6ffa8471c64113b12d8d94fb1.tar.gz external_llvm-c85dca66e68c9fa6ffa8471c64113b12d8d94fb1.tar.bz2 |
Remove duplicated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ')
-rw-r--r-- | lib/Target/SystemZ/SystemZMCAsmInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZMCAsmInfo.cpp b/lib/Target/SystemZ/SystemZMCAsmInfo.cpp index e2ae79d..2dc7e7b 100644 --- a/lib/Target/SystemZ/SystemZMCAsmInfo.cpp +++ b/lib/Target/SystemZ/SystemZMCAsmInfo.cpp @@ -14,6 +14,7 @@ #include "SystemZMCAsmInfo.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCSectionELF.h" +#include "llvm/Support/ELF.h" using namespace llvm; SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, StringRef TT) { @@ -24,6 +25,6 @@ SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, StringRef TT) { const MCSection *SystemZMCAsmInfo:: getNonexecutableStackSection(MCContext &Ctx) const{ - return Ctx.getELFSection(".note.GNU-stack", MCSectionELF::SHT_PROGBITS, + return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0, SectionKind::getMetadata()); } |