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

1

2

3

4

5

6

7

8

13namespace llvm {

18}

19

20using namespace llvm;

21

22namespace {

23

24 class MCNullStreamer : public MCStreamer {

25 public:

27

28

29

30

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

33

34 bool emitSymbolAttribute(MCSymbol *Symbol,

36 return true;

37 }

38

40 Align ByteAlignment) override {}

44 void emitGPRel32Value(const MCExpr *Value) override {}

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

46 void emitCOFFSymbolStorageClass(int StorageClass) override {}

47 void emitCOFFSymbolType(int Type) override {}

48 void endCOFFSymbolDef() override {}

49 void

52 };

53

54}

55

57 return new MCNullStreamer(Context);

58}

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 ...

Represents a location in source code.

StringRef - Represent a constant reference to a string, i.e.

The instances of the Type class are immutable: once they are created, they are never changed.

LLVM Value Representation.

This is an optimization pass for GlobalISel generic memory operations.

MCStreamer * createNullStreamer(MCContext &Ctx)

Create a dummy machine code streamer, which does nothing.

This struct is a compact representation of a valid (non-zero power of two) alignment.