<div dir="ltr"><div><div><div><div><div><div>Dear All,<br><br></div>I am trying to some basic stuff in llvm. For which I have included header files #include "llvm/Pass.h"<br>#include "llvm/IR/Function.h"<br>
#include "llvm/BasicBlock.h"<br>#include "llvm/Support/raw_ostream.h"<br></div> <br><br></div>And I got the error iiitd@iiitd-HP-Compaq-dx7400-Microtower:~/llvm-3.4/lib/Transforms/FaintVariable$ make<br>
llvm[0]: Compiling dataflow.cpp for Release+Asserts build (PIC)<br>In file included from dataflow.cpp:3:<br>In file included from /usr/local/include/llvm/BasicBlock.h:17:<br>In file included from /usr/local/include/llvm/Instruction.h:18:<br>
In file included from /usr/local/include/llvm/User.h:23:<br>In file included from /usr/local/include/llvm/Value.h:17:<br>/usr/local/include/llvm/Use.h:42:7: error: redefinition of<br> 'llvm::PointerLikeTypeTraits<llvm::Use **>'<br>
class PointerLikeTypeTraits<Use**> {<br> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>/home/iiitd/llvm-3.4/include/llvm/IR/Use.h:45:7: note: previous definition is<br> here<br>class PointerLikeTypeTraits<Use**> {<br>
<br><br></div>If anyone of you can help in resolving the error that I m getting. <br><br></div>Thanks,<br></div>Madhvi<br><div><div><div><div><div><div><br></div></div></div></div></div></div></div>