forked from OSchip/llvm-project
Accidental commit of partial 'stack canaries' code
llvm-svn: 55937
This commit is contained in:
parent
47be094138
commit
6fe5fe4209
|
@ -68,15 +68,6 @@ namespace FileModel {
|
|||
};
|
||||
}
|
||||
|
||||
// Stack canary model types.
|
||||
namespace StackCanaries {
|
||||
enum Model {
|
||||
Default,
|
||||
On,
|
||||
Always
|
||||
};
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
///
|
||||
/// TargetMachine - Primary interface to the complete machine description for
|
||||
|
|
|
@ -40,7 +40,6 @@ namespace llvm {
|
|||
bool RealignStack;
|
||||
bool VerboseAsm;
|
||||
bool DisableJumpTables;
|
||||
StackCanaries::Model StackProtectors;
|
||||
}
|
||||
|
||||
static cl::opt<bool, true> PrintCode("print-machineinstrs",
|
||||
|
@ -164,21 +163,6 @@ DisableSwitchTables(cl::Hidden, "disable-jump-tables",
|
|||
cl::location(DisableJumpTables),
|
||||
cl::init(false));
|
||||
|
||||
static cl::opt<llvm::StackCanaries::Model, true>
|
||||
GenerateStackProtectors("stack-protector",
|
||||
cl::desc("Generate stack protectors"),
|
||||
cl::location(StackProtectors),
|
||||
cl::init(StackCanaries::Default),
|
||||
cl::values(
|
||||
clEnumValN(StackCanaries::Default, "default",
|
||||
" No stack protectors"),
|
||||
clEnumValN(StackCanaries::On, "on",
|
||||
" Generate stack protectors for functions that"
|
||||
"need them"),
|
||||
clEnumValN(StackCanaries::Always, "all",
|
||||
" Generate stack protectors for all functions"),
|
||||
clEnumValEnd));
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// TargetMachine Class
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue