Lines Matching full:symbol
134 dumpFunctionDefinition(COFFYAML::Symbol *Sym, in dumpFunctionDefinition()
146 dumpbfAndEfLineInfo(COFFYAML::Symbol *Sym, in dumpbfAndEfLineInfo()
155 static void dumpWeakExternal(COFFYAML::Symbol *Sym, in dumpWeakExternal()
165 dumpSectionDefinition(COFFYAML::Symbol *Sym, in dumpSectionDefinition()
181 dumpCLRTokenDefinition(COFFYAML::Symbol *Sym, in dumpCLRTokenDefinition()
191 std::vector<COFFYAML::Symbol> &Symbols = YAMLObj.Symbols; in dumpSymbols()
193 object::COFFSymbolRef Symbol = Obj.getCOFFSymbol(S); in dumpSymbols() local
194 COFFYAML::Symbol Sym; in dumpSymbols()
195 Obj.getSymbolName(Symbol, Sym.Name); in dumpSymbols()
196 Sym.SimpleType = COFF::SymbolBaseType(Symbol.getBaseType()); in dumpSymbols()
197 Sym.ComplexType = COFF::SymbolComplexType(Symbol.getComplexType()); in dumpSymbols()
198 Sym.Header.StorageClass = Symbol.getStorageClass(); in dumpSymbols()
199 Sym.Header.Value = Symbol.getValue(); in dumpSymbols()
200 Sym.Header.SectionNumber = Symbol.getSectionNumber(); in dumpSymbols()
201 Sym.Header.NumberOfAuxSymbols = Symbol.getNumberOfAuxSymbols(); in dumpSymbols()
203 if (Symbol.getNumberOfAuxSymbols() > 0) { in dumpSymbols()
204 ArrayRef<uint8_t> AuxData = Obj.getSymbolAuxData(Symbol); in dumpSymbols()
205 if (Symbol.isFunctionDefinition()) { in dumpSymbols()
206 // This symbol represents a function definition. in dumpSymbols()
207 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
208 "Expected a single aux symbol to describe this function!"); in dumpSymbols()
214 } else if (Symbol.isFunctionLineInfo()) { in dumpSymbols()
215 // This symbol describes function line number information. in dumpSymbols()
216 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
217 "Expected a single aux symbol to describe this function!"); in dumpSymbols()
223 } else if (Symbol.isAnyUndefined()) { in dumpSymbols()
224 // This symbol represents a weak external definition. in dumpSymbols()
225 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
226 "Expected a single aux symbol to describe this weak symbol!"); in dumpSymbols()
232 } else if (Symbol.isFileRecord()) { in dumpSymbols()
233 // This symbol represents a file record. in dumpSymbols()
235 Symbol.getNumberOfAuxSymbols() * in dumpSymbols()
238 } else if (Symbol.isSectionDefinition()) { in dumpSymbols()
239 // This symbol represents a section definition. in dumpSymbols()
240 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
241 "Expected a single aux symbol to describe this section!"); in dumpSymbols()
246 dumpSectionDefinition(&Sym, ObjSD, Symbol.isBigObj()); in dumpSymbols()
247 } else if (Symbol.isCLRToken()) { in dumpSymbols()
248 // This symbol represents a CLR token definition. in dumpSymbols()
249 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
250 "Expected a single aux symbol to describe this CLR Token!"); in dumpSymbols()
257 llvm_unreachable("Unhandled auxiliary symbol!"); in dumpSymbols()