aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ShrinkWrapping.cpp
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2013-09-16 22:03:38 +0000
committerJakub Staszak <kubastaszak@gmail.com>2013-09-16 22:03:38 +0000
commitb06ea25b4c4cff341194279e01c08d23fa022378 (patch)
tree3f71872af461d1721ba5535f45c22014f6486de3 /lib/CodeGen/ShrinkWrapping.cpp
parent26a6348612e825a3ab636dee2f6e79212b2bda44 (diff)
downloadexternal_llvm-b06ea25b4c4cff341194279e01c08d23fa022378.tar.gz
external_llvm-b06ea25b4c4cff341194279e01c08d23fa022378.tar.bz2
external_llvm-b06ea25b4c4cff341194279e01c08d23fa022378.zip
Use reference instead of copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ShrinkWrapping.cpp')
-rw-r--r--lib/CodeGen/ShrinkWrapping.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/ShrinkWrapping.cpp b/lib/CodeGen/ShrinkWrapping.cpp
index 6c826deaf0..2b01fdd8d0 100644
--- a/lib/CodeGen/ShrinkWrapping.cpp
+++ b/lib/CodeGen/ShrinkWrapping.cpp
@@ -357,7 +357,7 @@ void PEI::propagateUsesAroundLoop(MachineBasicBlock* MBB, MachineLoop* LP) {
///
bool PEI::calculateSets(MachineFunction &Fn) {
// Sets used to compute spill, restore placement sets.
- const std::vector<CalleeSavedInfo> CSI =
+ const std::vector<CalleeSavedInfo> &CSI =
Fn.getFrameInfo()->getCalleeSavedInfo();
// If no CSRs used, we are done.
@@ -1054,7 +1054,7 @@ std::string PEI::getBasicBlockName(const MachineBasicBlock* MBB) {
std::string PEI::stringifyCSRegSet(const CSRegSet& s) {
const TargetRegisterInfo* TRI = MF->getTarget().getRegisterInfo();
- const std::vector<CalleeSavedInfo> CSI =
+ const std::vector<CalleeSavedInfo> &CSI =
MF->getFrameInfo()->getCalleeSavedInfo();
std::ostringstream srep;