From 1ed49fb74ba5127c92d837f147ccb26840c29675 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 8 Sep 2008 18:12:00 +0000 Subject: [PATCH] Accidental commit of partial 'stack canaries' code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55937 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetMachine.h | 9 --------- lib/Target/TargetMachine.cpp | 16 ---------------- 2 files changed, 25 deletions(-) diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 60b70399c7f..93c46ae28ea 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -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 diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 0bf0e374d1e..600a120e867 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -40,7 +40,6 @@ namespace llvm { bool RealignStack; bool VerboseAsm; bool DisableJumpTables; - StackCanaries::Model StackProtectors; } static cl::opt PrintCode("print-machineinstrs", @@ -164,21 +163,6 @@ DisableSwitchTables(cl::Hidden, "disable-jump-tables", cl::location(DisableJumpTables), cl::init(false)); -static cl::opt -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 //