diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-05 00:28:39 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-05 00:28:39 +0000 |
commit | a779a9899a5e23bd5198973f4709d66cb4bc2e64 (patch) | |
tree | f42654f8d9d6b2d0310b31500cedd1a0f93e05bb /lib/Target/X86/X86Subtarget.h | |
parent | 6625eff8ec38095e9dab31294a86555a489e56a4 (diff) |
Add AsmPrinter support for emitting a directive to declare that
the code being generated does not require an executable stack.
Also, add target-specific code to make use of this on Linux
on x86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | lib/Target/X86/X86Subtarget.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h index c91088dcdf..1e955cd868 100644 --- a/lib/Target/X86/X86Subtarget.h +++ b/lib/Target/X86/X86Subtarget.h @@ -84,7 +84,7 @@ private: public: enum { - isELF, isCygwin, isDarwin, isWindows, isMingw + isELF, isELFLinux, isCygwin, isDarwin, isWindows, isMingw } TargetType; /// This constructor initializes the data members to match that @@ -132,7 +132,12 @@ public: bool isFlavorIntel() const { return AsmFlavor == Intel; } bool isTargetDarwin() const { return TargetType == isDarwin; } - bool isTargetELF() const { return TargetType == isELF; } + bool isTargetELF() const { + return TargetType == isELF || TargetType == isELFLinux; + } + bool isTargetLinux() const { + return TargetType == isELFLinux; + } bool isTargetWindows() const { return TargetType == isWindows; } bool isTargetMingw() const { return TargetType == isMingw; } bool isTargetCygMing() const { return (TargetType == isMingw || |