[llvm] 816141c - [llvm-debuginfod] Include llvm/Support/StringExtras.h after D155178

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 13 14:47:04 PDT 2023


Author: Fangrui Song
Date: 2023-07-13T14:46:59-07:00
New Revision: 816141ce0eb899178dbcb6f0671875eb825b2f84

URL: https://github.com/llvm/llvm-project/commit/816141ce0eb899178dbcb6f0671875eb825b2f84
DIFF: https://github.com/llvm/llvm-project/commit/816141ce0eb899178dbcb6f0671875eb825b2f84.diff

LOG: [llvm-debuginfod] Include llvm/Support/StringExtras.h after D155178

To fix undefined errors like to_float. This tool is often not built as
LLVM_ENABLE_HTTPLIB defaults to off (and the external dependency
cpp-httplib is difficult to set up due to a dependency on brotli) and
LLVM_TOOL_LLVM_DEBUGINFOD_BUILD disabling logic in D147185.

Added: 
    

Modified: 
    llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp b/llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp
index ecdd06025fbaa9..725b810595268c 100644
--- a/llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp
+++ b/llvm/tools/llvm-debuginfod/llvm-debuginfod.cpp
@@ -15,6 +15,7 @@
 ///
 //===----------------------------------------------------------------------===//
 
+#include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Debuginfod/Debuginfod.h"
 #include "llvm/Debuginfod/HTTPClient.h"


        


More information about the llvm-commits mailing list