Changeset View
Changeset View
Standalone View
Standalone View
wasm/Symbols.h
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | static bool classof(const Symbol *S) { | ||||
return S->kind() == DefinedFunctionKind; | return S->kind() == DefinedFunctionKind; | ||||
} | } | ||||
InputFunction *Function; | InputFunction *Function; | ||||
}; | }; | ||||
class UndefinedFunction : public FunctionSymbol { | class UndefinedFunction : public FunctionSymbol { | ||||
public: | public: | ||||
UndefinedFunction(StringRef Name, uint32_t Flags, InputFile *File = nullptr, | UndefinedFunction(StringRef Name, StringRef Module, uint32_t Flags, | ||||
InputFile *File = nullptr, | |||||
const WasmSignature *Type = nullptr) | const WasmSignature *Type = nullptr) | ||||
: FunctionSymbol(Name, UndefinedFunctionKind, Flags, File, Type) {} | : FunctionSymbol(Name, UndefinedFunctionKind, Flags, File, Type), | ||||
Module(Module) {} | |||||
static bool classof(const Symbol *S) { | static bool classof(const Symbol *S) { | ||||
return S->kind() == UndefinedFunctionKind; | return S->kind() == UndefinedFunctionKind; | ||||
} | } | ||||
StringRef Module; | |||||
}; | }; | ||||
class SectionSymbol : public Symbol { | class SectionSymbol : public Symbol { | ||||
public: | public: | ||||
static bool classof(const Symbol *S) { return S->kind() == SectionKind; } | static bool classof(const Symbol *S) { return S->kind() == SectionKind; } | ||||
SectionSymbol(StringRef Name, uint32_t Flags, const InputSection *S, | SectionSymbol(StringRef Name, uint32_t Flags, const InputSection *S, | ||||
InputFile *F = nullptr) | InputFile *F = nullptr) | ||||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |