diff options
| author | Owen Anderson <resistor@mac.com> | 2008-08-14 22:49:33 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-08-14 22:49:33 +0000 |
| commit | 4f6bf04616b01fef8740ff68427a8ae0c570b923 (patch) | |
| tree | 5e63e2de6a02826372e814a6399e9765326a4851 /llvm/lib/Target/Mips/MipsInstrInfo.cpp | |
| parent | 65d83ccf26c8851f02ffea50a18c36c1c10fc2fe (diff) | |
| download | bcm5719-llvm-4f6bf04616b01fef8740ff68427a8ae0c570b923.tar.gz bcm5719-llvm-4f6bf04616b01fef8740ff68427a8ae0c570b923.zip | |
Convert uses of std::vector in TargetInstrInfo to SmallVector. This change had to be propoagated down into all the targets and up into all clients of this API.
llvm-svn: 54802
Diffstat (limited to 'llvm/lib/Target/Mips/MipsInstrInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsInstrInfo.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.cpp b/llvm/lib/Target/Mips/MipsInstrInfo.cpp index 6bbf240370a..2d016c67d46 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.cpp +++ b/llvm/lib/Target/Mips/MipsInstrInfo.cpp @@ -446,7 +446,7 @@ Mips::CondCode Mips::GetOppositeBranchCondition(Mips::CondCode CC) bool MipsInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, - std::vector<MachineOperand> &Cond) const + SmallVectorImpl<MachineOperand> &Cond) const { // If the block has no terminators, it just falls into the block after it. MachineBasicBlock::iterator I = MBB.end(); @@ -528,9 +528,8 @@ bool MipsInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, unsigned MipsInstrInfo:: InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, - MachineBasicBlock *FBB, const std::vector<MachineOperand> &Cond) - const -{ + MachineBasicBlock *FBB, + const SmallVectorImpl<MachineOperand> &Cond) const { // Shouldn't be a fall through. assert(TBB && "InsertBranch must not be told to insert a fallthrough"); assert((Cond.size() == 3 || Cond.size() == 2 || Cond.size() == 0) && @@ -615,7 +614,7 @@ BlockHasNoFallThrough(MachineBasicBlock &MBB) const /// ReverseBranchCondition - Return the inverse opcode of the /// specified Branch instruction. bool MipsInstrInfo:: -ReverseBranchCondition(std::vector<MachineOperand> &Cond) const +ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const { assert( (Cond.size() == 3 || Cond.size() == 2) && "Invalid Mips branch condition!"); |

