[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:
1 parent
72d070b4db
commit
9854f2f30f
10 files changed
+31
-5
No files matched your search
@@ -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)
|
||||
@@ -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
|
||||
)
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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"
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
Core
|
||||
IRReader
|
||||
Support
|
||||
)
|
||||
|
||||
add_llvm_tool(llvm-livepatch
|
||||
llvm-livepatch.cpp
|
||||
|
||||
DEPENDS
|
||||
intrinsics_gen
|
||||
)
|
||||
Reference in new issue
Block a user