mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
formatting cleanups, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79221 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f70bc559a1
commit
46a947d8c1
@ -8,7 +8,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
|
||||
#include "llvm/CodeGen/AsmPrinter.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
@ -17,19 +16,15 @@
|
||||
#include "llvm/MC/MCValue.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
|
||||
class MCAsmStreamer : public MCStreamer {
|
||||
class MCAsmStreamer : public MCStreamer {
|
||||
raw_ostream &OS;
|
||||
|
||||
AsmPrinter *Printer;
|
||||
|
||||
MCSection *CurSection;
|
||||
|
||||
public:
|
||||
public:
|
||||
MCAsmStreamer(MCContext &Context, raw_ostream &_OS, AsmPrinter *_AsmPrinter)
|
||||
: MCStreamer(Context), OS(_OS), Printer(_AsmPrinter), CurSection(0) {}
|
||||
~MCAsmStreamer() {}
|
||||
@ -74,21 +69,19 @@ namespace {
|
||||
virtual void Finish();
|
||||
|
||||
/// @}
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
} // end anonymous namespace.
|
||||
|
||||
/// Allow printing symbols directly to a raw_ostream with proper quoting.
|
||||
static inline raw_ostream &operator<<(raw_ostream &os, const MCSymbol *S) {
|
||||
S->print(os);
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
/// Allow printing values directly to a raw_ostream.
|
||||
static inline raw_ostream &operator<<(raw_ostream &os, const MCValue &Value) {
|
||||
Value.print(os);
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user