Displaying 2 results from an estimated 2 matches for "classllvm_1_1legacy_1_1passmanag".
Did you mean:
classllvm_1_1legacy_1_1passmanager
2018 Aug 14
2
Error: ‘class llvm::PassManager<llvm::Module>’ has no member named ‘add’
...clude "llvm/IR/LegacyPassManager.h"
but error remain same. Please help.
On Tue, Aug 14, 2018, 2:58 AM Philip Pfaffe <philip.pfaffe at gmail.com> wrote:
> Hi Ratnesh,
>
> the PassManager used in that example has moved into the legacy namespace:
> http://llvm.org/doxygen/classllvm_1_1legacy_1_1PassManager.html
>
> Cheers,
> Philip
>
> On Mon, Aug 13, 2018 at 8:49 PM Ratnesh Tiwari via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi, I am begineer to llvm, implementing a main.cpp from
>> https://github.com/davidar/lljvm/blob/master/backend/main.cpp
>...
2018 Aug 13
2
Error: ‘class llvm::PassManager<llvm::Module>’ has no member named ‘add’
Hi, I am begineer to llvm, implementing a main.cpp from
https://github.com/davidar/lljvm/blob/master/backend/main.cpp
A) : When I am declaring a command:
* PassManager PM*
* PM.add(new DataLayout td)*
It shows error:
>
*error: missing template arguments before ‘PM’*
* PassManager PM;*
^
>*main_test.cpp:48:2: error: ‘PM’ was not declared in this scope*
*