Don't pass BitVectors by value, pass them by reference.

llvm-svn: 63931
This commit is contained in:
Roman Levenstein 2009-02-06 09:16:15 +00:00
parent 4bdb124036
commit 54e78e7446
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ public:
/// setUsed / setUnused - Mark the state of one or a number of registers.
///
void setUsed(unsigned Reg, bool ImpDef = false);
void setUsed(BitVector Regs, bool ImpDef = false) {
void setUsed(BitVector &Regs, bool ImpDef = false) {
RegsAvailable &= ~Regs;
if (ImpDef)
ImplicitDefed |= Regs;
@ -133,7 +133,7 @@ public:
ImplicitDefed &= ~Regs;
}
void setUnused(unsigned Reg, const MachineInstr *MI);
void setUnused(BitVector Regs) {
void setUnused(BitVector &Regs) {
RegsAvailable |= Regs;
ImplicitDefed &= ~Regs;
}