Fail to Instrument cpp files
ruotongyu opened this issue · 2 comments
ruotongyu commented
@karthikp-ubc
Hello Karthikp,
I am also trying to use LLFI to inject faults to cpp projects. However, it always report error "error: expected top-level entity" when I try to do instrument.
/home/ruotoy/Desktop/llvm/bin/llvm-link: main.ll:81:1: error: expected top-level entity
$ZStorSt13_Ios_OpenmodeS = comdat any
It looks fine when I compile the project. I do not know if this error comes from the version of clang and llvm?
Really appreciate your help!!
ruotongyu commented
This error only happens when I try to compile cpp file which include header files. I am not sure if I did something wrong to link several files together.
karthikp-ubc commented
Sorry, this looks like an LLVm issue and not an LLFI issue, so we cant help with it unfortunately.