2009-08-13 23:36:34 +00:00
|
|
|
//===- lib/MC/MCNullStreamer.cpp - Dummy Streamer Implementation ----------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCStreamer.h"
|
|
|
|
#include "llvm/MC/MCContext.h"
|
|
|
|
#include "llvm/MC/MCInst.h"
|
|
|
|
#include "llvm/MC/MCSectionMachO.h"
|
|
|
|
#include "llvm/MC/MCSymbol.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
class MCNullStreamer : public MCStreamer {
|
|
|
|
public:
|
2014-01-26 06:06:37 +00:00
|
|
|
MCNullStreamer(MCContext &Context) : MCStreamer(Context) {}
|
2009-08-13 23:36:34 +00:00
|
|
|
|
|
|
|
/// @name MCStreamer Interface
|
|
|
|
/// @{
|
|
|
|
|
2014-03-08 07:02:02 +00:00
|
|
|
bool EmitSymbolAttribute(MCSymbol *Symbol,
|
|
|
|
MCSymbolAttr Attribute) override {
|
2013-08-09 01:52:03 +00:00
|
|
|
return true;
|
|
|
|
}
|
2009-08-13 23:36:34 +00:00
|
|
|
|
2014-03-08 07:02:02 +00:00
|
|
|
void EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
|
|
|
|
unsigned ByteAlignment) override {}
|
2015-05-21 19:20:38 +00:00
|
|
|
void EmitZerofill(MCSection *Section, MCSymbol *Symbol = nullptr,
|
2014-03-08 07:02:02 +00:00
|
|
|
uint64_t Size = 0, unsigned ByteAlignment = 0) override {}
|
2014-06-25 04:34:36 +00:00
|
|
|
void EmitGPRel32Value(const MCExpr *Value) override {}
|
2009-08-13 23:36:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2012-05-11 01:41:30 +00:00
|
|
|
|
2009-08-13 23:36:34 +00:00
|
|
|
MCStreamer *llvm::createNullStreamer(MCContext &Context) {
|
|
|
|
return new MCNullStreamer(Context);
|
|
|
|
}
|