From 32986572bfe5a30c500d03b8d55174720f08f0bf Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Wed, 8 Feb 2012 21:22:57 +0000 Subject: Move pass configuration out of pass constructors: StackSlotColoring. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150097 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/Passes.cpp | 2 +- lib/CodeGen/StackSlotColoring.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/CodeGen') diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 877b4bf..0166274 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -240,7 +240,7 @@ void TargetPassConfig::addMachinePasses() { // FIXME: Re-enable coloring with register when it's capable of adding // kill markers. if (!DisableSSC) - PM.add(createStackSlotColoringPass(false)); + PM.add(createStackSlotColoringPass()); // Run post-ra machine LICM to hoist reloads / remats. if (!DisablePostRAMachineLICM) diff --git a/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp index 9e84f3c..908d108 100644 --- a/lib/CodeGen/StackSlotColoring.cpp +++ b/lib/CodeGen/StackSlotColoring.cpp @@ -132,8 +132,8 @@ INITIALIZE_PASS_DEPENDENCY(MachineLoopInfo) INITIALIZE_PASS_END(StackSlotColoring, "stack-slot-coloring", "Stack Slot Coloring", false, false) -FunctionPass *llvm::createStackSlotColoringPass(bool RegColor) { - return new StackSlotColoring(RegColor); +FunctionPass *llvm::createStackSlotColoringPass() { + return new StackSlotColoring(/*RegColor=*/false); } namespace { -- cgit v1.1