LLVM: include/llvm/MC/MCObjectWriter.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9#ifndef LLVM_MC_MCOBJECTWRITER_H
10#define LLVM_MC_MCOBJECTWRITER_H
11
15#include
16
17namespace llvm {
18
25
26
27
28
29
30
31
32
33
35protected:
37
39
44
51
53
54public:
58
60
62
63
64 virtual void reset();
65
66
67
68
69
70
71
72
73
75
76
77
78
79
80
81
84
85
86
87
88
89
90 bool isSymbolRefDifferenceFullyResolved(const MCSymbol &A, const MCSymbol &B,
91 bool InSet) const;
92
93 virtual bool isSymbolRefDifferenceFullyResolvedImpl(const MCSymbol &SymA,
95 bool InSet,
96 bool IsPCRel) const;
97
101 void addFileName(StringRef FileName);
105
106
107
108
110
112
113
114
116
119
120
123
124
125
126
127
128
130
131
132};
133
134
135
137public:
141
142protected:
145
147};
148
149}
150
151#endif
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
PowerPC TLS Dynamic Call Fixup
Context object for machine code objects.
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Base class for classes that define behaviour that is specific to both the target and the object forma...
Definition MCObjectWriter.h:136
LLVM_ABI MCContext & getContext() const
LLVM_ABI void reportError(SMLoc L, const Twine &Msg) const
virtual Triple::ObjectFormatType getFormat() const =0
MCAssembler * Asm
Definition MCObjectWriter.h:146
void setAssembler(MCAssembler *A)
Definition MCObjectWriter.h:139
virtual ~MCObjectTargetWriter()=default
MutableArrayRef< std::pair< std::string, size_t > > getFileNames()
Definition MCObjectWriter.h:98
MCObjectWriter & operator=(const MCObjectWriter &)=delete
MCAssembler * Asm
Definition MCObjectWriter.h:36
SmallVector< CGProfileEntry, 0 > CGProfile
Definition MCObjectWriter.h:50
MCObjectWriter(const MCObjectWriter &)=delete
void setCompilerVersion(StringRef CompilerVers)
Definition MCObjectWriter.h:102
virtual ~MCObjectWriter()
bool getSubsectionsViaSymbols() const
Definition MCObjectWriter.h:121
virtual void setAssembler(MCAssembler *A)
Definition MCObjectWriter.h:59
bool SubsectionsViaSymbols
Definition MCObjectWriter.h:43
void emitAddrsigSection()
Tell the object writer to emit an address-significance table during writeObject().
Definition MCObjectWriter.h:109
virtual void executePostLayoutBinding()
Perform any late binding of symbols (for example, to assign symbol indices for use when generating re...
Definition MCObjectWriter.h:74
bool getEmitAddrsigSection()
Definition MCObjectWriter.h:111
std::vector< const MCSymbol * > & getAddrsigSyms()
Definition MCObjectWriter.h:117
void addAddrsigSymbol(const MCSymbol *Sym)
Record the given symbol in the address-significance table to be written diring writeObject().
Definition MCObjectWriter.h:115
bool EmitAddrsigSection
Definition MCObjectWriter.h:42
void setSubsectionsViaSymbols(bool Value)
Definition MCObjectWriter.h:122
std::string CompilerVersion
Definition MCObjectWriter.h:40
SmallVector< CGProfileEntry, 0 > & getCGProfile()
Definition MCObjectWriter.h:118
std::vector< const MCSymbol * > AddrsigSyms
Definition MCObjectWriter.h:41
virtual uint64_t writeObject()=0
Write the object file and returns the number of bytes written.
SmallVector< std::pair< std::string, size_t >, 0 > FileNames
List of declared file names.
Definition MCObjectWriter.h:38
Represent a reference to a symbol from inside an expression.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
Represents a location in source code.
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.
Target - Wrapper for Target specific information.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
LLVM Value Representation.
This is an optimization pass for GlobalISel generic memory operations.
Definition MCObjectWriter.h:45
uint64_t Count
Definition MCObjectWriter.h:48
const MCSymbolRefExpr * To
Definition MCObjectWriter.h:47
const MCSymbolRefExpr * From
Definition MCObjectWriter.h:46