[PATCH] D107392: [llvm-diff] Create libLLVMDiff library
Bill Wendling via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 5 10:36:17 PDT 2021
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9854f2f30f84: [llvm-diff] Create libLLVMDiff library (authored by void).
Changed prior to commit:
https://reviews.llvm.org/D107392?vs=363847&id=364542#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107392/new/
https://reviews.llvm.org/D107392
Files:
llvm/tools/llvm-diff/CMakeLists.txt
llvm/tools/llvm-diff/DiffConsumer.cpp
llvm/tools/llvm-diff/DiffConsumer.h
llvm/tools/llvm-diff/DiffLog.cpp
llvm/tools/llvm-diff/DiffLog.h
llvm/tools/llvm-diff/DifferenceEngine.cpp
llvm/tools/llvm-diff/DifferenceEngine.h
llvm/tools/llvm-diff/lib/CMakeLists.txt
llvm/tools/llvm-diff/lib/DiffConsumer.cpp
llvm/tools/llvm-diff/lib/DiffConsumer.h
llvm/tools/llvm-diff/lib/DiffLog.cpp
llvm/tools/llvm-diff/lib/DiffLog.h
llvm/tools/llvm-diff/lib/DifferenceEngine.cpp
llvm/tools/llvm-diff/lib/DifferenceEngine.h
llvm/tools/llvm-diff/llvm-diff.cpp
llvm/tools/llvm-livepatch/CMakeLists.txt
Index: llvm/tools/llvm-livepatch/CMakeLists.txt
===================================================================
--- /dev/null
+++ llvm/tools/llvm-livepatch/CMakeLists.txt
@@ -0,0 +1,12 @@
+set(LLVM_LINK_COMPONENTS
+ Core
+ IRReader
+ Support
+ )
+
+add_llvm_tool(llvm-livepatch
+ llvm-livepatch.cpp
+
+ DEPENDS
+ intrinsics_gen
+ )
Index: llvm/tools/llvm-diff/llvm-diff.cpp
===================================================================
--- llvm/tools/llvm-diff/llvm-diff.cpp
+++ llvm/tools/llvm-diff/llvm-diff.cpp
@@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
-#include "DiffLog.h"
-#include "DifferenceEngine.h"
+#include "lib/DiffLog.h"
+#include "lib/DifferenceEngine.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
Index: llvm/tools/llvm-diff/lib/CMakeLists.txt
===================================================================
--- /dev/null
+++ llvm/tools/llvm-diff/lib/CMakeLists.txt
@@ -0,0 +1,14 @@
+set(LLVM_LINK_COMPONENTS
+ Core
+ Support
+ )
+
+add_llvm_library(LLVMDiff
+ STATIC
+ DiffConsumer.cpp
+ DiffConsumer.h
+ DifferenceEngine.cpp
+ DifferenceEngine.h
+ DiffLog.cpp
+ DiffLog.h
+ )
Index: llvm/tools/llvm-diff/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-diff/CMakeLists.txt
+++ llvm/tools/llvm-diff/CMakeLists.txt
@@ -6,10 +6,10 @@
add_llvm_tool(llvm-diff
llvm-diff.cpp
- DiffConsumer.cpp
- DiffLog.cpp
- DifferenceEngine.cpp
DEPENDS
intrinsics_gen
)
+
+add_subdirectory(lib)
+target_link_libraries(llvm-diff PRIVATE LLVMDiff)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107392.364542.patch
Type: text/x-patch
Size: 1674 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210805/6b2bec41/attachment.bin>
More information about the llvm-commits
mailing list