diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-11-23 21:24:26 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-11-23 21:24:26 +0000 |
| commit | d3a06ffb1ce4456984dac07eeb7e728b60b7e1b6 (patch) | |
| tree | 6bdd3d0e3d34587d3167a9f2d8b2b43a821e682b | |
| parent | 9234ff26d92f43b6143bd769daa71150fd3b7961 (diff) | |
| download | bcm5719-llvm-d3a06ffb1ce4456984dac07eeb7e728b60b7e1b6.tar.gz bcm5719-llvm-d3a06ffb1ce4456984dac07eeb7e728b60b7e1b6.zip | |
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::`.
llvm-svn: 287814
| -rw-r--r-- | lld/ELF/Relocations.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 3cdad5de645..d9a62a6a9e2 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -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> |

