[llvm-commits] [llvm] r140758 - /llvm/trunk/tools/llvm-size/llvm-size.cpp
Andrew Trick
atrick at apple.com
Wed Sep 28 18:22:31 PDT 2011
Author: atrick
Date: Wed Sep 28 20:22:31 2011
New Revision: 140758
URL: http://llvm.org/viewvc/llvm-project?rev=140758&view=rev
Log:
Fix build failures better.
Modified:
llvm/trunk/tools/llvm-size/llvm-size.cpp
Modified: llvm/trunk/tools/llvm-size/llvm-size.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-size/llvm-size.cpp?rev=140758&r1=140757&r2=140758&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-size/llvm-size.cpp (original)
+++ llvm/trunk/tools/llvm-size/llvm-size.cpp Wed Sep 28 20:22:31 2011
@@ -78,7 +78,7 @@
/// @brief Get the length of the string that represents @p num in Radix
/// including the leading 0x or 0 for hexadecimal and octal respectively.
-static unsigned int getNumLengthAsString(uint64_t num) {
+static size_t getNumLengthAsString(uint64_t num) {
APInt conv(64, num);
SmallString<32> result;
conv.toString(result, Radix, false, true);
@@ -127,10 +127,8 @@
if (error(i->getName(name))) return;
if (error(i->getAddress(addr))) return;
max_name_len = std::max(max_name_len, name.size());
- max_size_len = std::max(max_size_len,
- (std::size_t) getNumLengthAsString(size));
- max_addr_len = std::max(max_addr_len,
- (std::size_t) getNumLengthAsString(addr));
+ max_size_len = std::max(max_size_len, getNumLengthAsString(size));
+ max_addr_len = std::max(max_addr_len, getNumLengthAsString(addr));
}
// Add extra padding.
More information about the llvm-commits
mailing list