mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 05:10:41 +00:00
Use llvm::raw_stream instead of llvm::Streams.
llvm-svn: 71573
This commit is contained in:
parent
5a9381d75f
commit
562178b9a4
@ -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
Block a user