Changes to make print pass work!

llvm-svn: 2306
This commit is contained in:
Chris Lattner 2002-04-18 22:11:12 +00:00
parent 60f426703d
commit 006a45af20

View File

@ -11,6 +11,7 @@
#define LLVM_ASSEMBLY_PRINTMODULEPASS_H
#include "llvm/Pass.h"
#include "llvm/Value.h"
#include <iostream>
class PrintModulePass : public Pass {
@ -49,7 +50,7 @@ public:
// it's processed.
//
bool runOnMethod(Function *F) {
(*Out) << Banner << F;
(*Out) << Banner << (Value*)F;
return false;
}
};