[llvm-commits] [llvm] r55937 - in /llvm/trunk: include/llvm/Target/TargetMachine.h lib/Target/TargetMachine.cpp

Bill Wendling isanbard at gmail.com
Mon Sep 8 11:12:01 PDT 2008


Author: void
Date: Mon Sep  8 13:12:00 2008
New Revision: 55937

URL: http://llvm.org/viewvc/llvm-project?rev=55937&view=rev
Log:
Accidental commit of partial 'stack canaries' code

Modified:
    llvm/trunk/include/llvm/Target/TargetMachine.h
    llvm/trunk/lib/Target/TargetMachine.cpp

Modified: llvm/trunk/include/llvm/Target/TargetMachine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetMachine.h?rev=55937&r1=55936&r2=55937&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetMachine.h (original)
+++ llvm/trunk/include/llvm/Target/TargetMachine.h Mon Sep  8 13:12:00 2008
@@ -68,15 +68,6 @@
   };
 }
 
-// Stack canary model types.
-namespace StackCanaries {
-  enum Model {
-    Default,
-    On,
-    Always
-  };
-}
-
 //===----------------------------------------------------------------------===//
 ///
 /// TargetMachine - Primary interface to the complete machine description for

Modified: llvm/trunk/lib/Target/TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetMachine.cpp?rev=55937&r1=55936&r2=55937&view=diff

==============================================================================
--- llvm/trunk/lib/Target/TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/TargetMachine.cpp Mon Sep  8 13:12:00 2008
@@ -40,7 +40,6 @@
   bool RealignStack;
   bool VerboseAsm;
   bool DisableJumpTables;
-  StackCanaries::Model StackProtectors;
 }
 
 static cl::opt<bool, true> PrintCode("print-machineinstrs",
@@ -164,21 +163,6 @@
            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
 //





More information about the llvm-commits mailing list