#include "llvm/Function.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
-#include "llvm/Support/Compiler.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
namespace {
- class VISIBILITY_HIDDEN PrintModulePass : public ModulePass {
+ class PrintModulePass : public ModulePass {
raw_ostream *Out; // raw_ostream to print on
bool DeleteStream; // Delete the ostream in our dtor?
public:
bool runOnModule(Module &M) {
(*Out) << M;
- Out->flush();
return false;
}
//
bool runOnFunction(Function &F) {
(*Out) << Banner << static_cast<Value&>(F);
- Out->flush();
return false;
}