Lines Matching full:symbol
137 dumpFunctionDefinition(COFFYAML::Symbol *Sym, in dumpFunctionDefinition()
149 dumpbfAndEfLineInfo(COFFYAML::Symbol *Sym, in dumpbfAndEfLineInfo()
158 static void dumpWeakExternal(COFFYAML::Symbol *Sym, in dumpWeakExternal()
168 dumpSectionDefinition(COFFYAML::Symbol *Sym, in dumpSectionDefinition()
184 dumpCLRTokenDefinition(COFFYAML::Symbol *Sym, in dumpCLRTokenDefinition()
194 std::vector<COFFYAML::Symbol> &Symbols = YAMLObj.Symbols; in dumpSymbols()
196 object::COFFSymbolRef Symbol = Obj.getCOFFSymbol(S); in dumpSymbols() local
197 COFFYAML::Symbol Sym; in dumpSymbols()
198 Obj.getSymbolName(Symbol, Sym.Name); in dumpSymbols()
199 Sym.SimpleType = COFF::SymbolBaseType(Symbol.getBaseType()); in dumpSymbols()
200 Sym.ComplexType = COFF::SymbolComplexType(Symbol.getComplexType()); in dumpSymbols()
201 Sym.Header.StorageClass = Symbol.getStorageClass(); in dumpSymbols()
202 Sym.Header.Value = Symbol.getValue(); in dumpSymbols()
203 Sym.Header.SectionNumber = Symbol.getSectionNumber(); in dumpSymbols()
204 Sym.Header.NumberOfAuxSymbols = Symbol.getNumberOfAuxSymbols(); in dumpSymbols()
206 if (Symbol.getNumberOfAuxSymbols() > 0) { in dumpSymbols()
207 ArrayRef<uint8_t> AuxData = Obj.getSymbolAuxData(Symbol); in dumpSymbols()
208 if (Symbol.isFunctionDefinition()) { in dumpSymbols()
209 // This symbol represents a function definition. in dumpSymbols()
210 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
211 "Expected a single aux symbol to describe this function!"); in dumpSymbols()
217 } else if (Symbol.isFunctionLineInfo()) { in dumpSymbols()
218 // This symbol describes function line number information. in dumpSymbols()
219 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
220 "Expected a single aux symbol to describe this function!"); in dumpSymbols()
226 } else if (Symbol.isAnyUndefined()) { in dumpSymbols()
227 // This symbol represents a weak external definition. in dumpSymbols()
228 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
229 "Expected a single aux symbol to describe this weak symbol!"); in dumpSymbols()
235 } else if (Symbol.isFileRecord()) { in dumpSymbols()
236 // This symbol represents a file record. in dumpSymbols()
238 Symbol.getNumberOfAuxSymbols() * in dumpSymbols()
241 } else if (Symbol.isSectionDefinition()) { in dumpSymbols()
242 // This symbol represents a section definition. in dumpSymbols()
243 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
244 "Expected a single aux symbol to describe this section!"); in dumpSymbols()
249 dumpSectionDefinition(&Sym, ObjSD, Symbol.isBigObj()); in dumpSymbols()
250 } else if (Symbol.isCLRToken()) { in dumpSymbols()
251 // This symbol represents a CLR token definition. in dumpSymbols()
252 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
253 "Expected a single aux symbol to describe this CLR Token!"); in dumpSymbols()
260 llvm_unreachable("Unhandled auxiliary symbol!"); in dumpSymbols()