[llvm-commits] [llvm] r64136 - in /llvm/trunk/include/llvm/ADT: APInt.h APSInt.h
Bill Wendling
isanbard at gmail.com
Mon Feb 9 04:31:27 PST 2009
Author: void
Date: Mon Feb 9 06:31:26 2009
New Revision: 64136
URL: http://llvm.org/viewvc/llvm-project?rev=64136&view=rev
Log:
These function return 'void'. Don't have 'return' return anything.
Modified:
llvm/trunk/include/llvm/ADT/APInt.h
llvm/trunk/include/llvm/ADT/APSInt.h
Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=64136&r1=64135&r2=64136&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Mon Feb 9 06:31:26 2009
@@ -1125,13 +1125,13 @@
/// Considers the APInt to be unsigned and converts it into a string in the
/// radix given. The radix can be 2, 8, 10 or 16.
void toStringUnsigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
- return toString(Str, Radix, false);
+ toString(Str, Radix, false);
}
/// Considers the APInt to be signed and converts it into a string in the
/// radix given. The radix can be 2, 8, 10 or 16.
void toStringSigned(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
- return toString(Str, Radix, true);
+ toString(Str, Radix, true);
}
/// toString - This returns the APInt as a std::string. Note that this is an
Modified: llvm/trunk/include/llvm/ADT/APSInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APSInt.h?rev=64136&r1=64135&r2=64136&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APSInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APSInt.h Mon Feb 9 06:31:26 2009
@@ -59,7 +59,7 @@
/// toString - Append this APSInt to the specified SmallString.
void toString(SmallVectorImpl<char> &Str, unsigned Radix = 10) const {
- return APInt::toString(Str, Radix, isSigned());
+ APInt::toString(Str, Radix, isSigned());
}
/// toString - Converts an APInt to a std::string. This is an inefficient
/// method, your should prefer passing in a SmallString instead.
More information about the llvm-commits
mailing list