Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Object/TapiFile.h
Show All 35 Lines | public: | ||||
Expected<uint32_t> getSymbolFlags(DataRefImpl DRI) const override; | Expected<uint32_t> getSymbolFlags(DataRefImpl DRI) const override; | ||||
basic_symbol_iterator symbol_begin() const override; | basic_symbol_iterator symbol_begin() const override; | ||||
basic_symbol_iterator symbol_end() const override; | basic_symbol_iterator symbol_end() const override; | ||||
static bool classof(const Binary *v) { return v->isTapiFile(); } | static bool classof(const Binary *v) { return v->isTapiFile(); } | ||||
bool is64Bit() { return MachO::is64Bit(Arch); } | |||||
private: | private: | ||||
struct Symbol { | struct Symbol { | ||||
StringRef Prefix; | StringRef Prefix; | ||||
StringRef Name; | StringRef Name; | ||||
uint32_t Flags; | uint32_t Flags; | ||||
constexpr Symbol(StringRef Prefix, StringRef Name, uint32_t Flags) | constexpr Symbol(StringRef Prefix, StringRef Name, uint32_t Flags) | ||||
: Prefix(Prefix), Name(Name), Flags(Flags) {} | : Prefix(Prefix), Name(Name), Flags(Flags) {} | ||||
}; | }; | ||||
std::vector<Symbol> Symbols; | std::vector<Symbol> Symbols; | ||||
MachO::Architecture Arch; | |||||
JDevlieghere: Why not just `Arch` like the ctor argument? | |||||
}; | }; | ||||
} // end namespace object. | } // end namespace object. | ||||
} // end namespace llvm. | } // end namespace llvm. | ||||
#endif // LLVM_OBJECT_TAPI_FILE_H | #endif // LLVM_OBJECT_TAPI_FILE_H |
Why not just Arch like the ctor argument?