Displaying 1 result from an estimated 1 matches for "test_clang".
2018 Apr 04
0
Fault while using AAResultsWrapperPass in LLVM 5.0.1
...AAResults();
.....
}
When the Timer pass is registered by the following code:
char CPI::ID = 0;
static RegisterPass<CPI> X("cpi", "code pointer integrity Pass");
The test code can be compiled successfully by the following command:
comp_1:
clang -O0 -emit-llvm test.c -c -o test_clang.bc
clang -O0 -emit-llvm fun_lib.c -c -o fun_lib.bc
opt -load ${LLVM_LIB}/LLVMTimer.so -Timer < test_clang.bc > test_clang1.bc
opt -load ${LLVM_LIB}/LLVMTimer.so -Timer < fun_lib.bc > test_clang1.bc
llc test_clang.bc -o test_clang.s
llc fun_lib.bc -o fun_lib.s
gcc test_clang.s fun_lib.s...