LLVM: include/llvm/MC/MCSectionMachO.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_MC_MCSECTIONMACHO_H

14#define LLVM_MC_MCSECTIONMACHO_H

15

20

21namespace llvm {

22

23

24

28 char SegmentName[16];

29

30

31

32 unsigned TypeAndAttributes;

33

34

35

36 unsigned Reserved2;

37

38

39

40 unsigned LayoutOrder = 0;

41

42

44

47public:

48

50

51 if (SegmentName[15])

52 return StringRef(SegmentName, 16);

54 }

55

57 unsigned getStubSize() const { return Reserved2; }

58

64 return (TypeAndAttributes & Value) != 0;

65 }

66

67

68

69

70

71

72

76 unsigned &TAA,

77 bool &TAAParsed,

78 unsigned &StubSize);

79

80 void allocAtoms();

81 const MCSymbol *getAtom(size_t I) const;

82 void setAtom(size_t I, const MCSymbol *Sym);

83

86};

87

88}

89

90#endif

Lightweight error class with error context and mandatory checking.

MachO::SectionType getType() const

Definition MCSectionMachO.h:59

StringRef getSegmentName() const

Definition MCSectionMachO.h:49

friend class MCAsmInfoDarwin

Definition MCSectionMachO.h:27

friend class MCContext

Definition MCSectionMachO.h:26

unsigned getLayoutOrder() const

Definition MCSectionMachO.h:84

void setLayoutOrder(unsigned Value)

Definition MCSectionMachO.h:85

unsigned getTypeAndAttributes() const

Definition MCSectionMachO.h:56

bool hasAttribute(unsigned Value) const

Definition MCSectionMachO.h:63

unsigned getStubSize() const

Definition MCSectionMachO.h:57

MCSection(StringRef Name, bool IsText, bool IsBss, MCSymbol *Begin)

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

SectionKind - This is a simple POD value that classifies the properties of a section.

This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.

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

LLVM Value Representation.

SectionType

These are the section type and attributes fields.

This is an optimization pass for GlobalISel generic memory operations.