[LLVMdev] Fwd: Facing Error While making pass PADriver::

Chavan Yogesh Laxman cs13m1012 at iith.ac.in
Thu Jul 17 09:40:31 PDT 2014


Hi Sir,

I am trying to Compile a PADriver to generate PADriver.so file but, facing
some error. please help me in this.

Following is the error I am Facing::
_________________________________________________________________________
admini at admini-Vostro:~/llvm/build/lib/Transforms/PADriver$ make
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
__________________________________________________________________________________


Thanking You,

Yogesh C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140717/546bfb08/attachment.html>


More information about the llvm-dev mailing list