New transformation


I am writing a new transformation (Basic block pass).
In the "\llvm-2.5\lib\VMCore\AsmWriter.cpp " file there are some of function i want to use.
What do i need to add to the transformation code, so i will be able to use those functions?
I tried to use a function and got this error : ‘AssemblyWriter’ was not declared in this scope.


You can't use AssemblyWriter directly... note that it's not declared
in a header. If you want to print out an instruction, you can just
use I->dump() or I->print(outputstream); see