diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-01 03:55:39 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-01 03:55:39 +0000 |
commit | ffda6bac113d4c079b534b1bfa7aea5498ee3e83 (patch) | |
tree | 0a2e1621c3b5d17432e77820421db82d16790f94 /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | a528bc0e8af8e4d70ba03e03319cce7c5775e4ea (diff) |
Rename CreateRegForValue to CreateReg, and change its argument
from a Value to a Type, because it doesn't actually care about
the Value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index faaf5dbcd6..96acd69321 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -6164,7 +6164,7 @@ SelectionDAGBuilder::HandlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB) { if (const Constant *C = dyn_cast<Constant>(PHIOp)) { unsigned &RegOut = ConstantsOut[C]; if (RegOut == 0) { - RegOut = FuncInfo.CreateRegForValue(C); + RegOut = FuncInfo.CreateReg(C->getType()); CopyValueToVirtualRegister(C, RegOut); } Reg = RegOut; @@ -6177,7 +6177,7 @@ SelectionDAGBuilder::HandlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB) { assert(isa<AllocaInst>(PHIOp) && FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(PHIOp)) && "Didn't codegen value into a register!??"); - Reg = FuncInfo.CreateRegForValue(PHIOp); + Reg = FuncInfo.CreateReg(PHIOp->getType()); CopyValueToVirtualRegister(PHIOp, Reg); } } |