<div dir="ltr">Hi Sir, <div class="gmail_quote"><div dir="ltr"><div><br></div><div>I am trying to Compile a PADriver to generate PADriver.so file but, facing some error. please help me in this.</div><div><br></div><div>Following is the error I am Facing::<br>
_________________________________________________________________________<br>admini@admini-Vostro:~/llvm/build/lib/Transforms/PADriver$ make<br>llvm[0]: Compiling PADriver.cpp for Debug+Asserts build (PIC)<br>/home/admini/llvm/llvm-3.4/lib/Transforms/PADriver/PADriver.cpp:469:9: error: <br>
no viable conversion from 'llvm::Use' to 'llvm::User *'<br> User *U = *UI;<br> ^ ~~~<br>/home/admini/llvm/build/include/llvm/Use.h:94:3: note: candidate function<br>
operator Value *() const { return Val; }<br> ^<br>/home/admini/llvm/llvm-3.4/lib/Transforms/PADriver/PADriver.cpp:475:11: error: <br> no matching member function for call to 'isCallee'<br> if (!CS.isCallee(UI))<br>
~~~^~~~~~~~<br>/home/admini/llvm/build/include/llvm/Support/CallSite.h:106:8: note: candidate<br> function not viable: no known conversion from 'Value::use_iterator' (aka<br> 'use_iterator_impl<llvm::Use>') to 'Value::const_user_iterator' (aka<br>
'user_iterator_impl<const llvm::User>') for 1st argument<br> bool isCallee(Value::const_user_iterator UI) const {<br> ^<br>/home/admini/llvm/build/include/llvm/Support/CallSite.h:111:8: note: candidate<br>
function not viable: no known conversion from 'Value::use_iterator' (aka<br> 'use_iterator_impl<llvm::Use>') to 'const llvm::Use *' for 1st argument<br> bool isCallee(const Use *U) const { return getCallee() == U; }<br>
^<br>/home/admini/llvm/llvm-3.4/lib/Transforms/PADriver/PADriver.cpp:513:20: error: <br> no matching member function for call to 'isCallee'<br> if (!Call || !CS.isCallee(UI)) continue;<br>
~~~^~~~~~~~<br>/home/admini/llvm/build/include/llvm/Support/CallSite.h:106:8: note: candidate<br> function not viable: no known conversion from 'Value::use_iterator' (aka<br> 'use_iterator_impl<llvm::Use>') to 'Value::const_user_iterator' (aka<br>
'user_iterator_impl<const llvm::User>') for 1st argument<br> bool isCallee(Value::const_user_iterator UI) const {<br> ^<br>/home/admini/llvm/build/include/llvm/Support/CallSite.h:111:8: note: candidate<br>
function not viable: no known conversion from 'Value::use_iterator' (aka<br> 'use_iterator_impl<llvm::Use>') to 'const llvm::Use *' for 1st argument<br> bool isCallee(const Use *U) const { return getCallee() == U; }<br>
^<br>3 errors generated.<br>make: *** [/home/admini/llvm/build/lib/Transforms/PADriver/Debug+Asserts/PADriver.o] Error 1<br>__________________________________________________________________________________<br></div>
<div><br></div><div> <br></div><div>Thanking You,</div><div><br></div><div>Yogesh C</div><div><br></div></div>
</div><br></div>