[Lldb-commits] [lldb] 5451c4b - [lldb/fuzzer] Moving target fuzzer into separate subdirectory

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu May 26 17:05:23 PDT 2022


Author: Chelsea Cassanova
Date: 2022-05-26T17:05:14-07:00
New Revision: 5451c4b4fb5448ac256327db4f78c996114ca4ec

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

LOG: [lldb/fuzzer] Moving target fuzzer into separate subdirectory

Moving lldb-target-fuzzer into its own subdirectory for better
organization and modularity.

Differential revision: https://reviews.llvm.org/D126507

Added: 
    lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
    lldb/tools/lldb-fuzzer/lldb-target-fuzzer/lldb-target-fuzzer.cpp

Modified: 
    lldb/tools/lldb-fuzzer/CMakeLists.txt

Removed: 
    lldb/tools/lldb-fuzzer/lldb-target-fuzzer.cpp


################################################################################
diff  --git a/lldb/tools/lldb-fuzzer/CMakeLists.txt b/lldb/tools/lldb-fuzzer/CMakeLists.txt
index b87e08720b59b..326c69a29dac1 100644
--- a/lldb/tools/lldb-fuzzer/CMakeLists.txt
+++ b/lldb/tools/lldb-fuzzer/CMakeLists.txt
@@ -1,18 +1,2 @@
+add_subdirectory(lldb-target-fuzzer)
 add_subdirectory(utils)
-
-set(LLVM_LINK_COMPONENTS
-  Support
-  )
-
-add_llvm_fuzzer(lldb-target-fuzzer
-  EXCLUDE_FROM_ALL
-  lldb-target-fuzzer.cpp
-  )
-
-if(TARGET lldb-target-fuzzer)
-  target_link_libraries(lldb-target-fuzzer
-    PRIVATE
-    liblldb
-    lldbFuzzerUtils
-    )
-endif()

diff  --git a/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt b/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
new file mode 100644
index 0000000000000..2c5b09a257110
--- /dev/null
+++ b/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/CMakeLists.txt
@@ -0,0 +1,17 @@
+set(LLVM_LINK_COMPONENTS
+  Support
+  )
+
+add_llvm_fuzzer(lldb-target-fuzzer
+  EXCLUDE_FROM_ALL
+  lldb-target-fuzzer.cpp
+  )
+
+if(TARGET lldb-target-fuzzer)
+  target_include_directories(lldb-target-fuzzer PRIVATE ..)
+  target_link_libraries(lldb-target-fuzzer
+    PRIVATE
+    liblldb
+    lldbFuzzerUtils
+    )
+endif()

diff  --git a/lldb/tools/lldb-fuzzer/lldb-target-fuzzer.cpp b/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/lldb-target-fuzzer.cpp
similarity index 97%
rename from lldb/tools/lldb-fuzzer/lldb-target-fuzzer.cpp
rename to lldb/tools/lldb-fuzzer/lldb-target-fuzzer/lldb-target-fuzzer.cpp
index 82487bb224f09..b7103789f5a57 100644
--- a/lldb/tools/lldb-fuzzer/lldb-target-fuzzer.cpp
+++ b/lldb/tools/lldb-fuzzer/lldb-target-fuzzer/lldb-target-fuzzer.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <utils/TempFile.h>
+#include "utils/TempFile.h"
 
 #include "lldb/API/SBDebugger.h"
 #include "lldb/API/SBTarget.h"


        


More information about the lldb-commits mailing list