mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
94fc29186e
This provides rudimentary testing of the llvm-c api. The following commands are implemented: * --module-dump Read bytecode from stdin - print ir * --module-list-functions Read bytecode from stdin - list summary of functions * --module-list-globals Read bytecode from stdin - list summary of globals * --targets-list List available targets * --object-list-sections Read object file from stdin - list sections * --object-list-symbols Read object file from stdin - list symbols (like nm) * --disassemble Read lines of triple, hex ascii machine code from stdin - print disassembly * --calc Read lines of name, rpn from stdin - print generated module ir Differential-Revision: http://llvm-reviews.chandlerc.com/D1776 llvm-svn: 193233
17 lines
273 B
CMake
17 lines
273 B
CMake
set(LLVM_LINK_COMPONENTS all)
|
|
|
|
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wstrict-prototypes")
|
|
endif ()
|
|
|
|
add_llvm_tool(llvm-c-test
|
|
calc.c
|
|
disassemble.c
|
|
helpers.c
|
|
include-all.c
|
|
main.c
|
|
module.c
|
|
object.c
|
|
targets.c
|
|
)
|