Use llvm::raw_stream instead of llvm::Streams.

llvm-svn: 71573
This commit is contained in:
Bill Wendling 2009-05-12 18:29:42 +00:00
parent 5a9381d75f
commit 562178b9a4
2 changed files with 4 additions and 2 deletions

View File

@ -61,6 +61,7 @@ entry:
#include "llvm/Analysis/Verifier.h"
#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/raw_ostream.h"
</pre>
</div>
@ -78,7 +79,7 @@ int main(int argc, char**argv) {
verifyModule(*Mod, PrintMessageAction);
PassManager PM;
PM.add(createPrintModulePass(&amp;llvm::cout));
PM.add(createPrintModulePass(&amp;outs()));
PM.run(*Mod);
delete Mod;

View File

@ -57,6 +57,7 @@ unsigned gcd(unsigned x, unsigned y) {
#include "llvm/Analysis/Verifier.h"
#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/Support/IRBuilder.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
@ -68,7 +69,7 @@ int main(int argc, char**argv) {
verifyModule(*Mod, PrintMessageAction);
PassManager PM;
PM.add(createPrintModulePass(&amp;llvm::cout));
PM.add(createPrintModulePass(&amp;outs()));
PM.run(*Mod);
delete Mod;