diff options
| author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-01-16 10:53:11 +0000 |
|---|---|---|
| committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-01-16 10:53:11 +0000 |
| commit | ecd0b83312bbed70380a0337a480b1cf698a0f6b (patch) | |
| tree | af4df4289d8482bbab5283fa22573961d0ad7a29 /llvm/lib/CodeGen | |
| parent | 45ef5036c929b73e180d0c959c05b1a6bda07162 (diff) | |
| download | bcm5719-llvm-ecd0b83312bbed70380a0337a480b1cf698a0f6b.tar.gz bcm5719-llvm-ecd0b83312bbed70380a0337a480b1cf698a0f6b.zip | |
[CodeGen][NFC] Correct case for printSubRegIdx
llvm-svn: 322541
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/MachineOperand.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 90515a6a9a2..5e7a2585b4e 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -744,7 +744,7 @@ void MIPrinter::print(const MachineInstr &MI, unsigned OpIdx, case MachineOperand::MO_Immediate: if (MI.isOperandSubregIdx(OpIdx)) { MachineOperand::printTargetFlags(OS, Op); - MachineOperand::printSubregIdx(OS, Op.getImm(), TRI); + MachineOperand::printSubRegIdx(OS, Op.getImm(), TRI); break; } LLVM_FALLTHROUGH; diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index eba100ee15e..47974a253ba 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1397,7 +1397,7 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST, LLT TypeToPrint = MRI ? getTypeToPrint(i, PrintedTypes, *MRI) : LLT{}; unsigned TiedOperandIdx = getTiedOperandIdx(i); if (MO.isImm() && isOperandSubregIdx(i)) - MachineOperand::printSubregIdx(OS, MO.getImm(), TRI); + MachineOperand::printSubRegIdx(OS, MO.getImm(), TRI); else MO.print(OS, MST, TypeToPrint, /*PrintDef=*/true, ShouldPrintRegisterTies, TiedOperandIdx, TRI, IntrinsicInfo); diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp index b4bfa3fecf0..9d0c93eb27d 100644 --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -440,7 +440,7 @@ static void printIRBlockReference(raw_ostream &OS, const BasicBlock &BB, OS << "<unknown>"; } -void MachineOperand::printSubregIdx(raw_ostream &OS, uint64_t Index, +void MachineOperand::printSubRegIdx(raw_ostream &OS, uint64_t Index, const TargetRegisterInfo *TRI) { OS << "%subreg."; if (TRI) |

