mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-22 21:17:14 +00:00
Recompiler: Use implementation aliases
This commit is contained in:
@@ -1972,15 +1972,18 @@ bool Recompiler::Recompile(const Function& fn)
|
||||
}
|
||||
|
||||
auto symbol = image.symbols.find(fn.base);
|
||||
std::string name;
|
||||
if (symbol != image.symbols.end())
|
||||
{
|
||||
println("PPC_WEAK_FUNC({}) {{", symbol->name);
|
||||
name = symbol->name;
|
||||
}
|
||||
else
|
||||
{
|
||||
println("PPC_WEAK_FUNC(sub_{}) {{", fn.base);
|
||||
name = std::format("sub_{}", fn.base);
|
||||
}
|
||||
|
||||
println("__attribute__((alias(\"__imp__{}\"))) PPC_WEAK_FUNC({});", name, name);
|
||||
println("PPC_FUNC_IMPL(__imp__{}) {{", name);
|
||||
println("\tPPC_FUNC_PROLOGUE();");
|
||||
|
||||
auto switchTable = switchTables.end();
|
||||
|
Reference in New Issue
Block a user