From 772eeb1adb0062a244e3a2effa6ca2628275642c Mon Sep 17 00:00:00 2001 From: Roman Levenstein Date: Fri, 6 Feb 2009 09:16:15 +0000 Subject: [PATCH] Don't pass BitVectors by value, pass them by reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63931 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/RegisterScavenging.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/RegisterScavenging.h b/include/llvm/CodeGen/RegisterScavenging.h index 05e9e55e234..a4ed0129eb4 100644 --- a/include/llvm/CodeGen/RegisterScavenging.h +++ b/include/llvm/CodeGen/RegisterScavenging.h @@ -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; } -- 2.34.1