aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp6
-rw-r--r--lib/CodeGen/VirtRegMap.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index 42029dc6b0..9e39618682 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -459,7 +459,7 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur)
}
else {
prt_->delRegUse(vrm_->getPhys(i->reg));
- vrm_->clearVirtReg(i->reg);
+ vrm_->clearVirt(i->reg);
if (i->spilled()) {
if (!i->empty()) {
IntervalPtrs::iterator it = unhandled_.begin();
@@ -479,7 +479,7 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur)
if (MRegisterInfo::isPhysicalRegister(i->reg))
fixed_.push_front(i);
else {
- vrm_->clearVirtReg(i->reg);
+ vrm_->clearVirt(i->reg);
if (i->spilled()) {
if (!i->empty()) {
IntervalPtrs::iterator it = unhandled_.begin();
@@ -497,7 +497,7 @@ void RA::assignRegOrStackSlotAtInterval(IntervalPtrs::value_type cur)
if (MRegisterInfo::isPhysicalRegister(i->reg))
fixed_.push_front(i);
else {
- vrm_->clearVirtReg(i->reg);
+ vrm_->clearVirt(i->reg);
unhandled_.push_front(i);
}
}
diff --git a/lib/CodeGen/VirtRegMap.h b/lib/CodeGen/VirtRegMap.h
index 3c991abb62..b0af8c5c73 100644
--- a/lib/CodeGen/VirtRegMap.h
+++ b/lib/CodeGen/VirtRegMap.h
@@ -71,7 +71,7 @@ namespace llvm {
v2pMap_[virtReg] = physReg;
}
- void clearVirtReg(unsigned virtReg) {
+ void clearVirt(unsigned virtReg) {
assert(MRegisterInfo::isVirtualRegister(virtReg));
assert(v2pMap_[virtReg] != NO_PHYS_REG &&
"attempt to clear a not assigned virtual register");