[lld] r287814 - Use llvm::utohexstr instead of Twine::utohexstr.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 13:24:26 PST 2016


Author: ruiu
Date: Wed Nov 23 15:24:26 2016
New Revision: 287814

URL: http://llvm.org/viewvc/llvm-project?rev=287814&view=rev
Log:
Use llvm::utohexstr instead of Twine::utohexstr.

They are essentially the same in this context, so I prefer the one
that doesn't need `Twine::`.

Modified:
    lld/trunk/ELF/Relocations.cpp

Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=287814&r1=287813&r2=287814&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Wed Nov 23 15:24:26 2016
@@ -556,8 +556,7 @@ std::string getLocation(InputSectionBase
     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>




More information about the llvm-commits mailing list