diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:48:02 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-08-30 16:48:02 +0000 |
| commit | 6dc4a8bc2c307022e0c330d531109d325fc044cf (patch) | |
| tree | d10033092d22061f48f763822a09018fce5de6eb /llvm/lib/Target/Mips/MipsISelLowering.cpp | |
| parent | e98cdf9b773f7bce3531345cfda1fa1eedf2fca7 (diff) | |
| download | bcm5719-llvm-6dc4a8bc2c307022e0c330d531109d325fc044cf.tar.gz bcm5719-llvm-6dc4a8bc2c307022e0c330d531109d325fc044cf.zip | |
Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already.
llvm-svn: 216820
Diffstat (limited to 'llvm/lib/Target/Mips/MipsISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index 368b1674b3f..c2d2da1bc8a 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp @@ -3034,7 +3034,7 @@ MipsTargetLowering::getSingleConstraintMatchWeight( /// that is returned indicates whether parsing was successful. The second flag /// is true if the numeric part exists. static std::pair<bool, bool> -parsePhysicalReg(const StringRef &C, std::string &Prefix, +parsePhysicalReg(StringRef C, std::string &Prefix, unsigned long long &Reg) { if (C.front() != '{' || C.back() != '}') return std::make_pair(false, false); @@ -3055,7 +3055,7 @@ parsePhysicalReg(const StringRef &C, std::string &Prefix, } std::pair<unsigned, const TargetRegisterClass *> MipsTargetLowering:: -parseRegForInlineAsmConstraint(const StringRef &C, MVT VT) const { +parseRegForInlineAsmConstraint(StringRef C, MVT VT) const { const TargetRegisterInfo *TRI = getTargetMachine().getSubtargetImpl()->getRegisterInfo(); const TargetRegisterClass *RC; |

