Use internal storage for command line option.

llvm-svn: 139079
This commit is contained in:
Benjamin Kramer 2011-09-03 03:45:06 +00:00
parent 2667afa980
commit 7859d2e148
2 changed files with 4 additions and 6 deletions

View 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

View 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) {