reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Object/Wasm.h
   51     return Info.Kind == wasm::WASM_SYMBOL_TYPE_FUNCTION;
   54   bool isTypeData() const { return Info.Kind == wasm::WASM_SYMBOL_TYPE_DATA; }
   57     return Info.Kind == wasm::WASM_SYMBOL_TYPE_GLOBAL;
   61     return Info.Kind == wasm::WASM_SYMBOL_TYPE_SECTION;
   64   bool isTypeEvent() const { return Info.Kind == wasm::WASM_SYMBOL_TYPE_EVENT; }
   69     return (Info.Flags & wasm::WASM_SYMBOL_UNDEFINED) != 0;
   85     return Info.Flags & wasm::WASM_SYMBOL_BINDING_MASK;
   93     return Info.Flags & wasm::WASM_SYMBOL_VISIBILITY_MASK;
lib/Object/WasmObjectFile.cpp
   40   Out << "Name=" << Info.Name
   41       << ", Kind=" << toString(wasm::WasmSymbolType(Info.Kind))
   42       << ", Flags=" << Info.Flags;
   44     Out << ", ElemIndex=" << Info.ElementIndex;
   46     Out << ", Segment=" << Info.DataRef.Segment;
   47     Out << ", Offset=" << Info.DataRef.Offset;
   48     Out << ", Size=" << Info.DataRef.Size;
 1291   return getWasmSymbol(Symb).Info.Name;
 1296   if (Sym.Info.Kind == wasm::WASM_SYMBOL_TYPE_FUNCTION &&
 1297       isDefinedFunctionIndex(Sym.Info.ElementIndex))
 1298     return getDefinedFunction(Sym.Info.ElementIndex).CodeSectionOffset;
 1304   switch (Sym.Info.Kind) {
 1308     return Sym.Info.ElementIndex;
 1312     uint32_t SegmentIndex = Sym.Info.DataRef.Segment;
 1315     return Segment.Offset.Value.Int32 + Sym.Info.DataRef.Offset;
 1341   switch (Sym.Info.Kind) {
 1365   switch (Sym.Info.Kind) {
 1376     Ref.d.a = Sym.Info.ElementIndex;
tools/lld/wasm/InputFiles.cpp
  128     return tableEntries[sym.Info.ElementIndex];
  138         wasmObj->dataSegments()[sym.Info.DataRef.Segment];
  139     return segment.Data.Offset.Value.Int32 + sym.Info.DataRef.Offset +
  145         functions[sym.Info.ElementIndex - wasmObj->getNumImportedFunctions()];
  157     return sym.Info.ElementIndex;
  392   StringRef name = sym.Info.Name;
  393   uint32_t flags = sym.Info.Flags;
  395   switch (sym.Info.Kind) {
  398         functions[sym.Info.ElementIndex - wasmObj->getNumImportedFunctions()];
  406     InputSegment *seg = segments[sym.Info.DataRef.Segment];
  407     uint32_t offset = sym.Info.DataRef.Offset;
  408     uint32_t size = sym.Info.DataRef.Size;
  417         globals[sym.Info.ElementIndex - wasmObj->getNumImportedGlobals()];
  423     InputSection *section = customSectionsByIndex[sym.Info.ElementIndex];
  429         events[sym.Info.ElementIndex - wasmObj->getNumImportedEvents()];
  439   StringRef name = sym.Info.Name;
  440   uint32_t flags = sym.Info.Flags | WASM_SYMBOL_UNDEFINED;
  442   switch (sym.Info.Kind) {
  445       return make<UndefinedFunction>(name, sym.Info.ImportName,
  446                                      sym.Info.ImportModule, flags, this,
  448     return symtab->addUndefinedFunction(name, sym.Info.ImportName,
  449                                         sym.Info.ImportModule, flags, this,
  457       return make<UndefinedGlobal>(name, sym.Info.ImportName,
  458                                    sym.Info.ImportModule, flags, this,
  460     return symtab->addUndefinedGlobal(name, sym.Info.ImportName,
  461                                       sym.Info.ImportModule, flags, this,
tools/llvm-readobj/WasmDumper.cpp
  225   W.printString("Name", Symbol.Info.Name);
  226   W.printEnum("Type", Symbol.Info.Kind, makeArrayRef(WasmSymbolTypes));
  227   W.printFlags("Flags", Symbol.Info.Flags, makeArrayRef(WasmSymbolFlags));
  229   if (Symbol.Info.Flags & wasm::WASM_SYMBOL_UNDEFINED) {
  230     W.printString("ImportName", Symbol.Info.ImportName);
  231     W.printString("ImportModule", Symbol.Info.ImportModule);
  233   if (Symbol.Info.Kind != wasm::WASM_SYMBOL_TYPE_DATA) {
  234     W.printHex("ElementIndex", Symbol.Info.ElementIndex);
  235   } else if (!(Symbol.Info.Flags & wasm::WASM_SYMBOL_UNDEFINED)) {
  236     W.printHex("Offset", Symbol.Info.DataRef.Offset);
  237     W.printHex("Segment", Symbol.Info.DataRef.Segment);
  238     W.printHex("Size", Symbol.Info.DataRef.Size);