mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Use raw_ostream throughout the AsmPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user