Go to the documentation of this file.
24 using namespace MachO;
28 uint32_t Flags = BasicSymbolRef::SF_Global;
30 Flags |= BasicSymbolRef::SF_Undefined;
32 Flags |= BasicSymbolRef::SF_Exported;
35 Flags |= BasicSymbolRef::SF_Weak;
44 if (!
Symbol->getArchitectures().has(Arch))
47 switch (
Symbol->getKind()) {
48 case SymbolKind::GlobalSymbol:
51 case SymbolKind::ObjectiveCClass:
62 case SymbolKind::ObjectiveCClassEHType:
66 case SymbolKind::ObjectiveCInstanceVariable:
79 assert(DRI.
d.
a < Symbols.size() &&
"Attempt to access symbol out of bounds");
80 const Symbol &Sym = Symbols[DRI.
d.
a];
81 OS << Sym.Prefix << Sym.Name;
86 assert(DRI.
d.
a < Symbols.size() &&
"Attempt to access symbol out of bounds");
87 return Symbols[DRI.
d.
a].Flags;
98 DRI.
d.
a = Symbols.size();
constexpr StringLiteral ObjC2EHTypePrefix
This is an optimization pass for GlobalISel generic memory operations.
void moveSymbolNext(DataRefImpl &DRI) const override
static ErrorSuccess success()
Create a success value.
bool isWeakDefined() const
Expected< uint32_t > getSymbolFlags(DataRefImpl DRI) const override
struct llvm::object::DataRefImpl::@332 d
Tagged union holding either a T or a Error.
constexpr StringLiteral ObjC2ClassNamePrefix
This is a value type class that represents a single symbol in the list of symbols in the object file.
This class implements an extremely fast bulk output stream that can only output to a stream.
Error printSymbolName(raw_ostream &OS, DataRefImpl DRI) const override
bar al al movzbl eax ret Missed when stored in a memory object
size_type count(const T &V) const
count - Return 1 if the element is in the set, 0 otherwise.
Architecture
Defines the architecture slices that are supported by Text-based Stub files.
bool isWeakReferenced() const
constexpr StringLiteral ObjC2MetaClassNamePrefix
Defines the interface file.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const_symbol_range symbols() const
constexpr StringLiteral ObjC1ClassNamePrefix
basic_symbol_iterator symbol_begin() const override
StringRef - Represent a constant reference to a string, i.e.
static uint32_t getFlags(const Symbol *Sym)
constexpr StringLiteral ObjC2IVarPrefix
Lightweight error class with error context and mandatory checking.
basic_symbol_iterator symbol_end() const override
PlatformSet getPlatforms() const
Get the platforms.