Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some members to the Module class for use by PCSX2 #155

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/ccc/symbol_database.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ class GlobalVariable : public Symbol {
};

// A label. This could be a label defined in assembly, C/C++, or just a symbol
// for which we cannot automatically determine its type (e.g. SNDLL symbols).
// that we can't automatically determine the type of (e.g. SNDLL symbols).
class Label : public Symbol {
friend SymbolList<Label>;
public:
Expand Down Expand Up @@ -453,11 +453,17 @@ class Module : public Symbol {
public:
static constexpr const SymbolDescriptor DESCRIPTOR = SymbolDescriptor::MODULE;
static constexpr const char* NAME = "Module";
static constexpr u32 FLAGS = NO_SYMBOL_FLAGS;
static constexpr u32 FLAGS = WITH_NAME_MAP;

ModuleHandle handle() const { return m_handle; }

// These are used for IRX modules.
bool is_irx = false;
s32 version_major = -1;
s32 version_minor = -1;
};

// A parameter variable.
class ParameterVariable : public Symbol {
friend Function;
friend SymbolList<ParameterVariable>;
Expand Down