[llvm] f9d761d - [tools] Fix `LLVM_USE_SANITIZE_COVERAGE` build (#87722)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 11:53:19 PDT 2024


Author: Justin Fargnoli
Date: 2024-04-15T11:53:15-07:00
New Revision: f9d761df50d12147fc7caa19927be81816d60e2d

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

LOG: [tools] Fix `LLVM_USE_SANITIZE_COVERAGE` build (#87722)

Added: 
    

Modified: 
    llvm/tools/llvm-dis-fuzzer/CMakeLists.txt
    llvm/tools/vfabi-demangle-fuzzer/vfabi-demangler-fuzzer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-dis-fuzzer/CMakeLists.txt b/llvm/tools/llvm-dis-fuzzer/CMakeLists.txt
index 4b0b80e2f75826..b424a14374f37a 100644
--- a/llvm/tools/llvm-dis-fuzzer/CMakeLists.txt
+++ b/llvm/tools/llvm-dis-fuzzer/CMakeLists.txt
@@ -1,5 +1,7 @@
 set(LLVM_LINK_COMPONENTS
   BitReader
+  Core
+  Support
 )
 add_llvm_fuzzer(llvm-dis-fuzzer
   llvm-dis-fuzzer.cpp

diff  --git a/llvm/tools/vfabi-demangle-fuzzer/vfabi-demangler-fuzzer.cpp b/llvm/tools/vfabi-demangle-fuzzer/vfabi-demangler-fuzzer.cpp
index e1041bd4eef998..309fe2b9957a4b 100644
--- a/llvm/tools/vfabi-demangle-fuzzer/vfabi-demangler-fuzzer.cpp
+++ b/llvm/tools/vfabi-demangle-fuzzer/vfabi-demangler-fuzzer.cpp
@@ -11,7 +11,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/AsmParser/Parser.h"
+#include "llvm/IR/Module.h"
 #include "llvm/IR/VFABIDemangler.h"
+#include "llvm/Support/SourceMgr.h"
 
 using namespace llvm;
 


        


More information about the llvm-commits mailing list