[lld] r326198 - [ELF] - Format, fix mistype. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 06:06:47 PST 2018


Author: grimar
Date: Tue Feb 27 06:06:47 2018
New Revision: 326198

URL: http://llvm.org/viewvc/llvm-project?rev=326198&view=rev
Log:
[ELF] - Format, fix mistype. NFC.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=326198&r1=326197&r2=326198&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Tue Feb 27 06:06:47 2018
@@ -1933,9 +1933,8 @@ template <class ELFT> void Writer<ELFT>:
 
 static std::string rangeToString(uint64_t Addr, uint64_t Len) {
   if (Len == 0)
-    return "<emtpy range at 0x" + utohexstr(Addr) + ">";
-  return "[0x" + utohexstr(Addr) + " -> 0x" +
-         utohexstr(Addr + Len - 1) + "]";
+    return "<empty range at 0x" + utohexstr(Addr) + ">";
+  return "[0x" + utohexstr(Addr) + " -> 0x" + utohexstr(Addr + Len - 1) + "]";
 }
 
 // Check whether sections overlap for a specific address range (file offsets,




More information about the llvm-commits mailing list