Displaying 1 result from an estimated 1 matches for "raw_osstream".
Did you mean:
raw_ostream
2009 May 12
1
[LLVMdev] Tutorial 1: casting cout
To get Tutorial 1 to compile, I had to cast cout as a raw_osstream, as in:
PM.add(createPrintModulePass(&llvm::cout));
---->
PM.add(createPrintModulePass((raw_ostream*)&llvm::cout));
I was getting the following error:
$ c++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1
tut1.cpp: In function ‘int main(int, char**)’:
tut1.cpp:19...