You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some issues in the code of Driver with recent versions of LLVM (I'm using the last version of the LLVM repository), the first problem is with the next code:
The compiler will complain, so it's necessary to add a missing header:
#include"llvm/Support/FileSystem.h"
Next is the legacy::PassManager, the compiler complains adding the result from createPrintModulePass to the PassManager, since the returned llvm::ModulePass * cannot be casted to the llvm::Pass from that PassManager, so it is possible to use a code similar to the one of the tool opt. First we add the next header:
There are some issues in the code of Driver with recent versions of LLVM (I'm using the last version of the LLVM repository), the first problem is with the next code:
sys::fs::OpenFlags OpenFlags = sys::fs::OF_None; if (FileType == CGFT_AssemblyFile) OpenFlags |= sys::fs::OF_Text;
The compiler will complain, so it's necessary to add a missing header:
Next is the
legacy::PassManager
, the compiler complains adding the result fromcreatePrintModulePass
to thePassManager
, since the returnedllvm::ModulePass *
cannot be casted to thellvm::Pass
from thatPassManager
, so it is possible to use a code similar to the one of the toolopt
. First we add the next header:And then we change the next code:
Learn-LLVM-12/Chapter05/tinylang/tools/driver/Driver.cpp
Lines 116 to 126 in e53b4df
For:
The text was updated successfully, but these errors were encountered: