[PATCH] D52128: [ELF] Use llvm::toLower instead of libc call tolower

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 15 17:00:34 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL342342: [ELF] Use llvm::toLower instead of libc call tolower (authored by MaskRay, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D52128

Files:
  lld/trunk/ELF/SyntheticSections.cpp


Index: lld/trunk/ELF/SyntheticSections.cpp
===================================================================
--- lld/trunk/ELF/SyntheticSections.cpp
+++ lld/trunk/ELF/SyntheticSections.cpp
@@ -30,6 +30,7 @@
 #include "lld/Common/Threads.h"
 #include "lld/Common/Version.h"
 #include "llvm/ADT/SetOperations.h"
+#include "llvm/ADT/StringExtras.h"
 #include "llvm/BinaryFormat/Dwarf.h"
 #include "llvm/DebugInfo/DWARF/DWARFDebugPubTable.h"
 #include "llvm/Object/Decompressor.h"
@@ -2338,7 +2339,7 @@
 static uint32_t computeGdbHash(StringRef S) {
   uint32_t H = 0;
   for (uint8_t C : S)
-    H = H * 67 + tolower(C) - 113;
+    H = H * 67 + toLower(C) - 113;
   return H;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52128.165667.patch
Type: text/x-patch
Size: 680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180916/dcf85c99/attachment.bin>


More information about the llvm-commits mailing list