From e1b2419a0008e38ef2d9d255d9e9c74e9fba084b Mon Sep 17 00:00:00 2001 From: "Rebecca N. Palmer" Date: Sat, 21 Jul 2018 20:05:54 +0100 Subject: Add preliminary LLVM 7 support This is preliminary because LLVM 7 has not been released yet: it was tested with the snapshot from Debian experimental (svn336894). 1.Change linking order, as clangCodeGen now links to clangFrontend 2.Pass references not pointers to WriteBitcodeToFile and CloneModule 3.Add the headers that LoopSimplifyID, LCSSAID and some create*Pass have moved to 4.Define our DEBUG whether or not we just undefined LLVM's (theirs is now LLVM_DEBUG, but we never actually use it) Signed-off-by: Rebecca N. Palmer Reviewed-by: Yang Rong --- CMake/FindLLVM.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMake') diff --git a/CMake/FindLLVM.cmake b/CMake/FindLLVM.cmake index 5457f248..f882589d 100644 --- a/CMake/FindLLVM.cmake +++ b/CMake/FindLLVM.cmake @@ -113,10 +113,10 @@ macro(add_one_lib name) endmacro() #Assume clang lib path same as llvm lib path +add_one_lib("clangCodeGen") add_one_lib("clangFrontend") add_one_lib("clangSerialization") add_one_lib("clangDriver") -add_one_lib("clangCodeGen") add_one_lib("clangSema") add_one_lib("clangStaticAnalyzerFrontend") add_one_lib("clangStaticAnalyzerCheckers") -- cgit v1.2.1