aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/Passes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-13 01:02:14 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-13 01:02:14 +0000
commite9e6bdf27fca46dc9eca2ebdf73e03747d1859ab (patch)
tree565577ce5e9de5d74dacdf007bb6657832a9aa9f /include/llvm/CodeGen/Passes.h
parent7fc610f07311ecbbbdf163e5bcb45c636b87c983 (diff)
downloadexternal_llvm-e9e6bdf27fca46dc9eca2ebdf73e03747d1859ab.tar.gz
external_llvm-e9e6bdf27fca46dc9eca2ebdf73e03747d1859ab.tar.bz2
external_llvm-e9e6bdf27fca46dc9eca2ebdf73e03747d1859ab.zip
Implement stack protectors as function attributes: "ssp" and "sspreq".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/Passes.h')
-rw-r--r--include/llvm/CodeGen/Passes.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h
index a933309854..e9d26cf4c2 100644
--- a/include/llvm/CodeGen/Passes.h
+++ b/include/llvm/CodeGen/Passes.h
@@ -26,16 +26,6 @@ namespace llvm {
class TargetLowering;
class RegisterCoalescer;
- /// StackProtectorLevel - An enumeration for when to determin when to turn
- /// stack smashing protection (SSP) on.
- namespace SSP {
- enum StackProtectorLevel {
- OFF, // Stack protectors are off.
- SOME, // Stack protectors on only for functions that require them.
- ALL // Stack protectors on for all functions.
- };
- } // end SSP namespace
-
/// createUnreachableBlockEliminationPass - The LLVM code generator does not
/// work well with unreachable basic blocks (what live ranges make sense for a
/// block that cannot be reached?). As such, a code generator should either
@@ -204,8 +194,7 @@ namespace llvm {
FunctionPass *createStackSlotColoringPass();
/// createStackProtectorPass - This pass adds stack protectors to functions.
- FunctionPass *createStackProtectorPass(SSP::StackProtectorLevel lvl,
- const TargetLowering *tli);
+ FunctionPass *createStackProtectorPass(const TargetLowering *tli);
} // End llvm namespace