LLVM: lib/MC/MCNullStreamer.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

12namespace llvm {

17}

18

19using namespace llvm;

20

21namespace {

22

23class MCNullStreamer : public MCStreamer {

24public:

25 MCNullStreamer(MCContext &Context) : MCStreamer(Context) {}

26

27

28

29

30 bool hasRawTextSupport() const override { return true; }

31 void emitRawTextImpl(StringRef String) override {}

32

34 return true;

35 }

36

37 void emitCommonSymbol(MCSymbol *Symbol, uint64_t Size,

38 Align ByteAlignment) override {}

39 void emitSubsectionsViaSymbols() override {};

40 void beginCOFFSymbolDef(const MCSymbol *Symbol) override {}

41 void emitCOFFSymbolStorageClass(int StorageClass) override {}

42 void emitCOFFSymbolType(int Type) override {}

43 void endCOFFSymbolDef() override {}

44 void emitXCOFFSymbolLinkageWithVisibility(MCSymbol *Symbol,

47};

48

49}

50

52 return new MCNullStreamer(Context);

53}

Context object for machine code objects.

Base class for the full range of assembler expressions which are needed for parsing.

Instances of this class represent a uniqued identifier for a section in the current translation unit.

Streaming machine code generation interface.

MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...

This is an optimization pass for GlobalISel generic memory operations.

LLVM_ABI MCStreamer * createNullStreamer(MCContext &Ctx)

Create a dummy machine code streamer, which does nothing.

Definition MCNullStreamer.cpp:51