mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 10:21:54 +00:00
Use reference instead of copy.
llvm-svn: 190813
This commit is contained in:
parent
6f21cbb1dd
commit
84872fcf98
@ -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;
|
||||
|
@ -1646,7 +1646,7 @@ void AsmParser::DiagHandler(const SMDiagnostic &Diag, void *Context) {
|
||||
// Use the CppHashFilename and calculate a line number based on the
|
||||
// CppHashLoc and CppHashLineNumber relative to this Diag's SMLoc for
|
||||
// the diagnostic.
|
||||
const std::string Filename = Parser->CppHashFilename;
|
||||
const std::string &Filename = Parser->CppHashFilename;
|
||||
|
||||
int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf);
|
||||
int CppHashLocLineNo =
|
||||
|
Loading…
x
Reference in New Issue
Block a user