Add #includes
[oota-llvm.git] / tools / analyze / analyze.cpp
index 0a6ecf81afa1dbb890e8229d3f3f63abd2f65f38..a83ede3a05135a17535168e1d338cc689d98d603 100644 (file)
 #include "llvm/Module.h"
 #include "llvm/Function.h"
 #include "llvm/iPHINode.h"
+#include "llvm/Type.h"
 #include "llvm/PassManager.h"
 #include "llvm/Bytecode/Reader.h"
 #include "llvm/Assembly/Parser.h"
 #include "llvm/Assembly/PrintModulePass.h"
+#include "llvm/Assembly/Writer.h"
 #include "llvm/Analysis/Writer.h"
 #include "llvm/Analysis/InstForest.h"
 #include "llvm/Analysis/Dominators.h"
@@ -129,7 +131,7 @@ Pass *New(const string &Message) {
 
 
 Pass *NewPrintFunction(const string &Message) {
-  return new PrintMethodPass(Message, &std::cout);
+  return new PrintFunctionPass(Message, &std::cout);
 }
 Pass *NewPrintModule(const string &Message) {
   return new PrintModulePass(&std::cout);