mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 07:31:28 +00:00
[llvm-diff] Create libLLVMDiff library
Some tools may want to use the LLVM "diff" code. Move the code into a library for easy use. No functionality change intende. Differential Revision: https://reviews.llvm.org/D107392
This commit is contained in:
parent
72d070b4db
commit
9854f2f30f
@ -6,10 +6,10 @@ set(LLVM_LINK_COMPONENTS
|
||||
|
||||
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)
|
||||
|
14
llvm/tools/llvm-diff/lib/CMakeLists.txt
Normal file
14
llvm/tools/llvm-diff/lib/CMakeLists.txt
Normal file
@ -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
|
||||
)
|
@ -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"
|
||||
|
12
llvm/tools/llvm-livepatch/CMakeLists.txt
Normal file
12
llvm/tools/llvm-livepatch/CMakeLists.txt
Normal file
@ -0,0 +1,12 @@
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
Core
|
||||
IRReader
|
||||
Support
|
||||
)
|
||||
|
||||
add_llvm_tool(llvm-livepatch
|
||||
llvm-livepatch.cpp
|
||||
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
)
|
Loading…
Reference in New Issue
Block a user