mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Don't pass StringRef by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -761,7 +761,7 @@ APFloat::APFloat(const fltSemantics &ourSemantics,
|
||||
makeNaN();
|
||||
}
|
||||
|
||||
APFloat::APFloat(const fltSemantics &ourSemantics, const StringRef& text)
|
||||
APFloat::APFloat(const fltSemantics &ourSemantics, StringRef text)
|
||||
{
|
||||
assertArithmeticOK(ourSemantics);
|
||||
initialize(&ourSemantics);
|
||||
@@ -2185,8 +2185,7 @@ APFloat::convertFromZeroExtendedInteger(const integerPart *parts,
|
||||
}
|
||||
|
||||
APFloat::opStatus
|
||||
APFloat::convertFromHexadecimalString(const StringRef &s,
|
||||
roundingMode rounding_mode)
|
||||
APFloat::convertFromHexadecimalString(StringRef s, roundingMode rounding_mode)
|
||||
{
|
||||
lostFraction lost_fraction = lfExactlyZero;
|
||||
integerPart *significand;
|
||||
@@ -2361,7 +2360,7 @@ APFloat::roundSignificandWithExponent(const integerPart *decSigParts,
|
||||
}
|
||||
|
||||
APFloat::opStatus
|
||||
APFloat::convertFromDecimalString(const StringRef &str, roundingMode rounding_mode)
|
||||
APFloat::convertFromDecimalString(StringRef str, roundingMode rounding_mode)
|
||||
{
|
||||
decimalInfo D;
|
||||
opStatus fs;
|
||||
@@ -2471,7 +2470,7 @@ APFloat::convertFromDecimalString(const StringRef &str, roundingMode rounding_mo
|
||||
}
|
||||
|
||||
APFloat::opStatus
|
||||
APFloat::convertFromString(const StringRef &str, roundingMode rounding_mode)
|
||||
APFloat::convertFromString(StringRef str, roundingMode rounding_mode)
|
||||
{
|
||||
assertArithmeticOK(*semantics);
|
||||
assert(!str.empty() && "Invalid string length");
|
||||
|
Reference in New Issue
Block a user