forked from OSchip/llvm-project
Use llvm::raw_stream instead of llvm::Streams.
llvm-svn: 71573
This commit is contained in:
parent
b61448d490
commit
cb368e295d
|
@ -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(&llvm::cout));
|
||||
PM.add(createPrintModulePass(&outs()));
|
||||
PM.run(*Mod);
|
||||
|
||||
delete Mod;
|
||||
|
|
|
@ -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(&llvm::cout));
|
||||
PM.add(createPrintModulePass(&outs()));
|
||||
PM.run(*Mod);
|
||||
|
||||
delete Mod;
|
||||
|
|
Loading…
Reference in New Issue