summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachOWriter.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-08-21 00:14:44 +0000
committerOwen Anderson <resistor@mac.com>2008-08-21 00:14:44 +0000
commit9371964f47abf0a0397a26e86c3c95f46c4f1fba (patch)
treebd7af9bf77ff2ede44084c4ac4f6fb39c14dc32c /llvm/lib/CodeGen/MachOWriter.cpp
parent873f65afe8f8e959ece92ca216d80ddbdd04c94a (diff)
downloadbcm5719-llvm-9371964f47abf0a0397a26e86c3c95f46c4f1fba.tar.gz
bcm5719-llvm-9371964f47abf0a0397a26e86c3c95f46c4f1fba.zip
Use raw_ostream throughout the AsmPrinter.
llvm-svn: 55092
Diffstat (limited to 'llvm/lib/CodeGen/MachOWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/MachOWriter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp
index bed2c5ca4b2..9f1cb00ca70 100644
--- a/llvm/lib/CodeGen/MachOWriter.cpp
+++ b/llvm/lib/CodeGen/MachOWriter.cpp
@@ -37,6 +37,7 @@
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/OutputBuffer.h"
#include "llvm/Support/Streams.h"
+#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cstring>
using namespace llvm;
@@ -44,7 +45,7 @@ using namespace llvm;
/// AddMachOWriter - Concrete function to add the Mach-O writer to the function
/// pass manager.
MachineCodeEmitter *llvm::AddMachOWriter(PassManagerBase &PM,
- std::ostream &O,
+ raw_ostream &O,
TargetMachine &TM) {
MachOWriter *MOW = new MachOWriter(O, TM);
PM.add(MOW);
@@ -334,7 +335,7 @@ void MachOCodeEmitter::emitJumpTables(MachineJumpTableInfo *MJTI) {
//===----------------------------------------------------------------------===//
char MachOWriter::ID = 0;
-MachOWriter::MachOWriter(std::ostream &o, TargetMachine &tm)
+MachOWriter::MachOWriter(raw_ostream &o, TargetMachine &tm)
: MachineFunctionPass((intptr_t)&ID), O(o), TM(tm) {
is64Bit = TM.getTargetData()->getPointerSizeInBits() == 64;
isLittleEndian = TM.getTargetData()->isLittleEndian();
OpenPOWER on IntegriCloud