LLVM: lib/TextAPI/Symbol.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

14#include

15

16namespace llvm {

18

19#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)

21 std::string Result;

23 Result += "(undef) ";

25 Result += "(weak-def) ";

27 Result += "(weak-ref) ";

29 Result += "(tlv) ";

30 switch (Kind) {

32 Result += Name.str();

33 break;

35 Result += "(ObjC Class) " + Name.str();

36 break;

38 Result += "(ObjC Class EH) " + Name.str();

39 break;

41 Result += "(ObjC IVar) " + Name.str();

42 break;

43 }

44 OS << Result;

45}

46#endif

47

50 std::function<bool(const Target &)> FN =

53 };

55}

56

58

59

65 };

68

69 RemoveFlag(*this, LHSFlags);

70 RemoveFlag(O, RHSFlags);

71 return std::tie(Name, Kind, Targets, LHSFlags) ==

72 std::tie(O.Name, O.Kind, O.Targets, RHSFlags);

73}

74

93

94}

95}

#define LLVM_DUMP_METHOD

Mark debug helper function definitions like dump() that should not be stripped from debug builds.

bool has(Architecture Arch) const

bool isWeakDefined() const

llvm::iterator_range< const_filtered_target_iterator > const_filtered_target_range

const_target_range targets() const

LLVM_ABI bool operator==(const Symbol &O) const

Definition Symbol.cpp:57

bool isThreadLocalValue() const

Symbol(EncodeKind Kind, StringRef Name, TargetList Targets, SymbolFlags Flags)

bool isWeakReferenced() const

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

bool starts_with(StringRef Prefix) const

Check if this string starts with the given Prefix.

StringRef drop_front(size_t N=1) const

Return a StringRef equal to 'this' but with the first N elements dropped.

This class implements an extremely fast bulk output stream that can only output to a stream.

constexpr StringLiteral ObjC2IVarPrefix

constexpr StringLiteral ObjC1ClassNamePrefix

constexpr StringLiteral ObjC2ClassNamePrefix

@ EHType

Is OBJC_EHTYPE* symbol.

@ Class

Is OBJC_CLASS* symbol.

@ MetaClass

Is OBJC_METACLASS* symbol.

@ ObjectiveCInstanceVariable

LLVM_ABI SimpleSymbol parseSymbol(StringRef SymName)

Get symbol classification by parsing the name of a symbol.

Definition Symbol.cpp:75

constexpr StringLiteral ObjC2MetaClassNamePrefix

constexpr StringLiteral ObjC2EHTypePrefix

This is an optimization pass for GlobalISel generic memory operations.

iterator_range< filter_iterator< detail::IterOfRange< RangeT >, PredicateT > > make_filter_range(RangeT &&Range, PredicateT Pred)

Convenience function that takes a range of elements and a predicate, and return a new filter_iterator...

Lightweight struct for passing around symbol information.