llvm.org GIT mirror llvm / f47e870
Fix build failures better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140758 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Trick 8 years ago
1 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
7777
7878 /// @brief Get the length of the string that represents @p num in Radix
7979 /// including the leading 0x or 0 for hexadecimal and octal respectively.
80 static unsigned int getNumLengthAsString(uint64_t num) {
80 static size_t getNumLengthAsString(uint64_t num) {
8181 APInt conv(64, num);
8282 SmallString<32> result;
8383 conv.toString(result, Radix, false, true);
126126 if (error(i->getName(name))) return;
127127 if (error(i->getAddress(addr))) return;
128128 max_name_len = std::max(max_name_len, name.size());
129 max_size_len = std::max(max_size_len,
130 (std::size_t) getNumLengthAsString(size));
131 max_addr_len = std::max(max_addr_len,
132 (std::size_t) getNumLengthAsString(addr));
129 max_size_len = std::max(max_size_len, getNumLengthAsString(size));
130 max_addr_len = std::max(max_addr_len, getNumLengthAsString(addr));
133131 }
134132
135133 // Add extra padding.