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 | aea4958ea6acd5d5820149cc76dae57a1f2c5c12 (patch) | |
tree | 574d5e614651a478f6a3fede73b50d1b51037526 /llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp | |
parent | a914bed8006a754ce36ccb00860bd944ca8807ae (diff) | |
download | bcm5719-llvm-aea4958ea6acd5d5820149cc76dae57a1f2c5c12.tar.gz bcm5719-llvm-aea4958ea6acd5d5820149cc76dae57a1f2c5c12.zip |
Remove duplicated code.
llvm-svn: 124054
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp b/llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp index e2ae79d59ea..2dc7e7bd29b 100644 --- a/llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp +++ b/llvm/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()); } |