mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Convert a few more uses of llvm/Support/Streams.h to raw_ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,17 +19,18 @@
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/Support/GetElementPtrTypeIterator.h"
|
||||
#include "llvm/Support/PatternMatch.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace llvm;
|
||||
using namespace llvm::PatternMatch;
|
||||
|
||||
void ExtAddrMode::print(OStream &OS) const {
|
||||
void ExtAddrMode::print(raw_ostream &OS) const {
|
||||
bool NeedPlus = false;
|
||||
OS << "[";
|
||||
if (BaseGV) {
|
||||
OS << (NeedPlus ? " + " : "")
|
||||
<< "GV:";
|
||||
WriteAsOperand(*OS.stream(), BaseGV, /*PrintType=*/false);
|
||||
WriteAsOperand(OS, BaseGV, /*PrintType=*/false);
|
||||
NeedPlus = true;
|
||||
}
|
||||
|
||||
@@ -39,13 +40,13 @@ void ExtAddrMode::print(OStream &OS) const {
|
||||
if (BaseReg) {
|
||||
OS << (NeedPlus ? " + " : "")
|
||||
<< "Base:";
|
||||
WriteAsOperand(*OS.stream(), BaseReg, /*PrintType=*/false);
|
||||
WriteAsOperand(OS, BaseReg, /*PrintType=*/false);
|
||||
NeedPlus = true;
|
||||
}
|
||||
if (Scale) {
|
||||
OS << (NeedPlus ? " + " : "")
|
||||
<< Scale << "*";
|
||||
WriteAsOperand(*OS.stream(), ScaledReg, /*PrintType=*/false);
|
||||
WriteAsOperand(OS, ScaledReg, /*PrintType=*/false);
|
||||
NeedPlus = true;
|
||||
}
|
||||
|
||||
@@ -53,7 +54,7 @@ void ExtAddrMode::print(OStream &OS) const {
|
||||
}
|
||||
|
||||
void ExtAddrMode::dump() const {
|
||||
print(cerr);
|
||||
print(errs());
|
||||
cerr << '\n';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user