Chavan Yogesh Laxman
2014-Jul-18 05:47 UTC
[LLVMdev] Facing Error while making Pointer analysis Pass:::
Hi Sir, I am trying to do a Pointer Analysis Program for that I have to make PADriver to get PADriver.so but while making I faced following Errors. Please Help me. Error I faced :: __________________________________________________________________ llvm[0]: Compiling PADriver.cpp for Debug+Asserts build (PIC) /home/admini/llvm/llvm-3.4/lib/Transforms/PADriver/PADriver.cpp:469:9: error: no viable conversion from 'llvm::Use' to 'llvm::User *' User *U = *UI; ^ ~~~ /home/admini/llvm/build/include/llvm/Use.h:94:3: note: candidate function operator Value *() const { return Val; } ^ /home/admini/llvm/llvm-3.4/lib/Transforms/PADriver/PADriver.cpp:475:11: error: no matching member function for call to 'isCallee' if (!CS.isCallee(UI)) ~~~^~~~~~~~ /home/admini/llvm/build/include/llvm/Support/CallSite.h:106:8: note: candidate function not viable: no known conversion from 'Value::use_iterator' (aka 'use_iterator_impl<llvm::Use>') to 'Value::const_user_iterator' (aka 'user_iterator_impl<const llvm::User>') for 1st argument bool isCallee(Value::const_user_iterator UI) const { ^ /home/admini/llvm/build/include/llvm/Support/CallSite.h:111:8: note: candidate function not viable: no known conversion from 'Value::use_iterator' (aka 'use_iterator_impl<llvm::Use>') to 'const llvm::Use *' for 1st argument bool isCallee(const Use *U) const { return getCallee() == U; } ^ /home/admini/llvm/llvm-3.4/lib/Transforms/PADriver/PADriver.cpp:513:20: error: no matching member function for call to 'isCallee' if (!Call || !CS.isCallee(UI)) continue; ~~~^~~~~~~~ /home/admini/llvm/build/include/llvm/Support/CallSite.h:106:8: note: candidate function not viable: no known conversion from 'Value::use_iterator' (aka 'use_iterator_impl<llvm::Use>') to 'Value::const_user_iterator' (aka 'user_iterator_impl<const llvm::User>') for 1st argument bool isCallee(Value::const_user_iterator UI) const { ^ /home/admini/llvm/build/include/llvm/Support/CallSite.h:111:8: note: candidate function not viable: no known conversion from 'Value::use_iterator' (aka 'use_iterator_impl<llvm::Use>') to 'const llvm::Use *' for 1st argument bool isCallee(const Use *U) const { return getCallee() == U; } ^ 3 errors generated. make: *** [/home/admini/llvm/build/lib/Transforms/PADriver/Debug+Asserts/PADriver.o] Error 1 _____________________________________________________________________ -Thanks, YOGESH C -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140718/1e1eb47b/attachment.html>