Use internal storage for command line option.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 3 Sep 2011 03:45:06 +0000 (03:45 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 3 Sep 2011 03:45:06 +0000 (03:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139079 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp
lib/Target/X86/X86VZeroUpper.cpp

index fddb7fb0fb60a5cf6611926c41143b7cca0adbbc..17e573300d22ca31061e966ec3f2dbc11c76ee43 100644 (file)
@@ -95,12 +95,10 @@ X86TargetMachine::X86TargetMachine(const Target &T, StringRef TT,
 //===----------------------------------------------------------------------===//
 // Command line options for x86
 //===----------------------------------------------------------------------===//
-bool UseVZeroUpper;
-
-static cl::opt<bool, true>
-VZeroUpper("x86-use-vzeroupper",
+static cl::opt<bool>
+UseVZeroUpper("x86-use-vzeroupper",
   cl::desc("Minimize AVX to SSE transition penalty"),
-  cl::location(UseVZeroUpper), cl::init(false));
+  cl::init(false));
 
 //===----------------------------------------------------------------------===//
 // Pass Pipeline Configuration
index d87efc99b24637e7d294d459d0f1344f05ffea09..39584942468d18d32e3cf6b00a28a48eedd15cd8 100644 (file)
@@ -62,7 +62,7 @@ bool VZeroUpperInserter::runOnMachineFunction(MachineFunction &MF) {
   return Changed;
 }
 
-bool isCallToModuleFn(const MachineInstr *MI) {
+static bool isCallToModuleFn(const MachineInstr *MI) {
   assert(MI->getDesc().isCall() && "Isn't a call instruction");
 
   for (int i = 0, e = MI->getNumOperands(); i != e; ++i) {