Lines Matching defs:Kind
48 static inline bool isValidMCLOHType(unsigned Kind) {
49 return Kind >= MCLOH_AdrpAdrp && Kind <= MCLOH_AdrpLdrGot;
67 static inline StringRef MCLOHIdToName(MCLOHType Kind) {
69 switch (Kind) {
83 static inline int MCLOHIdToNbArgs(MCLOHType Kind) {
84 switch (Kind) {
103 MCLOHType Kind;
117 MCLOHDirective(MCLOHType Kind, const LOHArgs &Args)
118 : Kind(Kind), Args(Args.begin(), Args.end()) {
119 assert(isValidMCLOHType(Kind) && "Invalid LOH directive type!");
122 MCLOHType getKind() const { return Kind; }
153 /// Add the directive of the given kind \p Kind with the given arguments
155 void addDirective(MCLOHType Kind, const MCLOHDirective::LOHArgs &Args) {
156 Directives.push_back(MCLOHDirective(Kind, Args));