aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsLongBranch.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-07-31 21:49:49 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-07-31 21:49:49 +0000
commit0bc1adbbc4fdc6d85a671ed70a1bbd345dba445d (patch)
treebff519453a5ba3fad9afa0ba5a6ed76668e29d64 /lib/Target/Mips/MipsLongBranch.cpp
parentb4f921b1f0ae34d6cfda6034a7d32c73b0738351 (diff)
downloadexternal_llvm-0bc1adbbc4fdc6d85a671ed70a1bbd345dba445d.zip
external_llvm-0bc1adbbc4fdc6d85a671ed70a1bbd345dba445d.tar.gz
external_llvm-0bc1adbbc4fdc6d85a671ed70a1bbd345dba445d.tar.bz2
Add definitions of two subclasses of MipsInstrInfo, MipsInstrInfo (for mips16),
and MipsSEInstrInfo (for mips32/64). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsLongBranch.cpp')
-rw-r--r--lib/Target/Mips/MipsLongBranch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsLongBranch.cpp b/lib/Target/Mips/MipsLongBranch.cpp
index 70ecbc1..f78203f 100644
--- a/lib/Target/Mips/MipsLongBranch.cpp
+++ b/lib/Target/Mips/MipsLongBranch.cpp
@@ -207,7 +207,7 @@ int64_t MipsLongBranch::computeOffset(const MachineInstr *Br) {
// MachineBasicBlock operand MBBOpnd.
void MipsLongBranch::replaceBranch(MachineBasicBlock &MBB, Iter Br,
DebugLoc DL, MachineBasicBlock *MBBOpnd) {
- unsigned NewOpc = Mips::GetOppositeBranchOpc(Br->getOpcode());
+ unsigned NewOpc = TII->GetOppositeBranchOpc(Br->getOpcode());
const MCInstrDesc &NewDesc = TII->get(NewOpc);
MachineInstrBuilder MIB = BuildMI(MBB, Br, DL, NewDesc);