diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-04-22 19:14:27 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-04-22 19:14:27 +0000 |
commit | 2b744665308fc8d30a3baecb4947f2bd81aa7d30 (patch) | |
tree | 6736f424b6b73de03f1bcd292fff719d9e0bd63f /llvm/lib/CodeGen/BranchRelaxation.cpp | |
parent | f84ce75cd1c4847803f50ae0a4e95ca295dac30d (diff) | |
download | bcm5719-llvm-2b744665308fc8d30a3baecb4947f2bd81aa7d30.tar.gz bcm5719-llvm-2b744665308fc8d30a3baecb4947f2bd81aa7d30.zip |
Use const DebugLoc&
llvm-svn: 358910
Diffstat (limited to 'llvm/lib/CodeGen/BranchRelaxation.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchRelaxation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/BranchRelaxation.cpp b/llvm/lib/CodeGen/BranchRelaxation.cpp index 3ad6266d4f3..15edc98c47f 100644 --- a/llvm/lib/CodeGen/BranchRelaxation.cpp +++ b/llvm/lib/CodeGen/BranchRelaxation.cpp @@ -300,7 +300,7 @@ bool BranchRelaxation::isBlockInRange( /// too far away to fit in its displacement field. It is converted to an inverse /// conditional branch + an unconditional branch to the destination. bool BranchRelaxation::fixupConditionalBranch(MachineInstr &MI) { - DebugLoc DL = MI.getDebugLoc(); + const DebugLoc &DL = MI.getDebugLoc(); MachineBasicBlock *MBB = MI.getParent(); MachineBasicBlock *TBB = nullptr, *FBB = nullptr; MachineBasicBlock *NewBB = nullptr; @@ -468,7 +468,7 @@ bool BranchRelaxation::fixupUnconditionalBranch(MachineInstr &MI) { MBB->replaceSuccessor(DestBB, BranchBB); } - DebugLoc DL = MI.getDebugLoc(); + const DebugLoc &DL = MI.getDebugLoc(); MI.eraseFromParent(); BlockInfo[BranchBB->getNumber()].Size += TII->insertIndirectBranch( *BranchBB, *DestBB, DL, DestOffset - SrcOffset, RS.get()); |