diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-23 07:21:06 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-23 07:21:06 +0000 |
| commit | 76bdea32900ab533b0c059ec8b71fff59c919632 (patch) | |
| tree | 2251dacb7d096950344e3ac66269bf2b071110dd /llvm/lib/Target/X86/X86MCAsmInfo.h | |
| parent | e244ff35d851cbb3386e13274b80f3f01ebe2c45 (diff) | |
| download | bcm5719-llvm-76bdea32900ab533b0c059ec8b71fff59c919632.tar.gz bcm5719-llvm-76bdea32900ab533b0c059ec8b71fff59c919632.zip | |
resolve a fixme: the "nonexecutable stack directive" is actually
a .section. Switch to it with SwitchSection.
However, I think that this directive should be safe on any ELF target.
If so, we should hoist it up out of the X86 and SystemZ targets.
llvm-svn: 94298
Diffstat (limited to 'llvm/lib/Target/X86/X86MCAsmInfo.h')
| -rw-r--r-- | llvm/lib/Target/X86/X86MCAsmInfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86MCAsmInfo.h b/llvm/lib/Target/X86/X86MCAsmInfo.h index 18e2bdbcba9..ca227b7a0ba 100644 --- a/llvm/lib/Target/X86/X86MCAsmInfo.h +++ b/llvm/lib/Target/X86/X86MCAsmInfo.h @@ -27,6 +27,7 @@ namespace llvm { struct X86ELFMCAsmInfo : public MCAsmInfo { explicit X86ELFMCAsmInfo(const Triple &Triple); + virtual MCSection *getNonexecutableStackSection(MCContext &Ctx) const; }; struct X86MCAsmInfoCOFF : public MCAsmInfoCOFF { |

