Use llvm::utohexstr instead of Twine::utohexstr.
authorRui Ueyama <ruiu@google.com>
Wed, 23 Nov 2016 21:24:26 +0000 (21:24 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 23 Nov 2016 21:24:26 +0000 (21:24 +0000)
They are essentially the same in this context, so I prefer the one
that doesn't need `Twine::`.

llvm-svn: 287814

lld/ELF/Relocations.cpp

index 3cdad5d..d9a62a6 100644 (file)
@@ -556,8 +556,7 @@ std::string getLocation(InputSectionBase<ELFT> &S, typename ELFT::uint Offset) {
     return SrcFile + ":(function " + maybeDemangle(Encl->getName()) + ")";
 
   // If there's no symbol, print out the offset instead of a symbol name.
-  return (SrcFile + ":(" + S.Name + "+0x" + Twine::utohexstr(Offset) + ")")
-      .str();
+  return (SrcFile + ":(" + S.Name + "+0x" + utohexstr(Offset) + ")").str();
 }
 
 template <class ELFT>