Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ install(TARGETS alive alive-jobserver)
#add_library(alive2 SHARED ${IR_SRCS} ${SMT_SRCS} ${TOOLS_SRCS} ${UTIL_SRCS} ${LLVM_UTIL_SRCS})

if (BUILD_LLVM_UTILS OR BUILD_TV)
llvm_map_components_to_libnames(llvm_libs support core irreader bitwriter analysis passes transformutils codegen AllTargetsCodeGens AllTargetsDescs AllTargetsInfos)
llvm_map_components_to_libnames(llvm_libs support core irreader bitwriter analysis passes transformutils codegen targetparser AllTargetsCodeGens AllTargetsDescs AllTargetsInfos)
# target_link_libraries(alive2 PRIVATE ${llvm_libs})
target_link_libraries(alive-tv PRIVATE ${ALIVE_LIBS_LLVM} ${Z3_LIBRARIES} ${HIREDIS_LIBRARIES} ${llvm_libs})
target_link_libraries(quick-fuzz PRIVATE ${ALIVE_LIBS_LLVM} ${Z3_LIBRARIES} ${HIREDIS_LIBRARIES} ${llvm_libs})
Expand Down
2 changes: 1 addition & 1 deletion llvm_util/llvm_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ string optimize_module(llvm::Module &M, string_view optArgs) {
Triple ModuleTriple(M.getTargetTriple());
unique_ptr<llvm::TargetMachine> TM;
if (ModuleTriple.getArch()) {
auto ETM = codegen::createTargetMachineForTriple(ModuleTriple.str());
auto ETM = codegen::createTargetMachineForTriple(ModuleTriple);
if (auto E = ETM.takeError())
return toString(std::move(E));
TM = std::move(*ETM);
Expand Down
Loading