mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Use reference instead of copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190813 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user