• Home
  • Raw
  • Download

Lines Matching full:symbol

143 dumpFunctionDefinition(COFFYAML::Symbol *Sym,  in dumpFunctionDefinition()
155 dumpbfAndEfLineInfo(COFFYAML::Symbol *Sym, in dumpbfAndEfLineInfo()
164 static void dumpWeakExternal(COFFYAML::Symbol *Sym, in dumpWeakExternal()
174 dumpSectionDefinition(COFFYAML::Symbol *Sym, in dumpSectionDefinition()
190 dumpCLRTokenDefinition(COFFYAML::Symbol *Sym, in dumpCLRTokenDefinition()
200 std::vector<COFFYAML::Symbol> &Symbols = YAMLObj.Symbols; in dumpSymbols()
202 object::COFFSymbolRef Symbol = Obj.getCOFFSymbol(S); in dumpSymbols() local
203 COFFYAML::Symbol Sym; in dumpSymbols()
204 Obj.getSymbolName(Symbol, Sym.Name); in dumpSymbols()
205 Sym.SimpleType = COFF::SymbolBaseType(Symbol.getBaseType()); in dumpSymbols()
206 Sym.ComplexType = COFF::SymbolComplexType(Symbol.getComplexType()); in dumpSymbols()
207 Sym.Header.StorageClass = Symbol.getStorageClass(); in dumpSymbols()
208 Sym.Header.Value = Symbol.getValue(); in dumpSymbols()
209 Sym.Header.SectionNumber = Symbol.getSectionNumber(); in dumpSymbols()
210 Sym.Header.NumberOfAuxSymbols = Symbol.getNumberOfAuxSymbols(); in dumpSymbols()
212 if (Symbol.getNumberOfAuxSymbols() > 0) { in dumpSymbols()
213 ArrayRef<uint8_t> AuxData = Obj.getSymbolAuxData(Symbol); in dumpSymbols()
214 if (Symbol.isFunctionDefinition()) { in dumpSymbols()
215 // This symbol represents a function definition. 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.isFunctionLineInfo()) { in dumpSymbols()
224 // This symbol describes function line number information. in dumpSymbols()
225 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
226 "Expected a single aux symbol to describe this function!"); in dumpSymbols()
232 } else if (Symbol.isAnyUndefined()) { in dumpSymbols()
233 // This symbol represents a weak external definition. in dumpSymbols()
234 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
235 "Expected a single aux symbol to describe this weak symbol!"); in dumpSymbols()
241 } else if (Symbol.isFileRecord()) { in dumpSymbols()
242 // This symbol represents a file record. in dumpSymbols()
244 Symbol.getNumberOfAuxSymbols() * in dumpSymbols()
247 } else if (Symbol.isSectionDefinition()) { in dumpSymbols()
248 // This symbol represents a section definition. in dumpSymbols()
249 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
250 "Expected a single aux symbol to describe this section!"); in dumpSymbols()
255 dumpSectionDefinition(&Sym, ObjSD, Symbol.isBigObj()); in dumpSymbols()
256 } else if (Symbol.isCLRToken()) { in dumpSymbols()
257 // This symbol represents a CLR token definition. in dumpSymbols()
258 assert(Symbol.getNumberOfAuxSymbols() == 1 && in dumpSymbols()
259 "Expected a single aux symbol to describe this CLR Token!"); in dumpSymbols()
266 llvm_unreachable("Unhandled auxiliary symbol!"); in dumpSymbols()