mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
TupleTree: switch from public fields to accessors
This commit is contained in:
committed by
Alessandro Di Federico
parent
0d3133cfc9
commit
742e1a0c56
@@ -37,7 +37,7 @@ void GeneratedCodeBasicInfo::run(Module &M) {
|
||||
revng_log(PassesLog, "Starting GeneratedCodeBasicInfo");
|
||||
|
||||
using namespace model::Architecture;
|
||||
auto Architecture = Binary->Architecture;
|
||||
auto Architecture = Binary->Architecture();
|
||||
PC = M.getGlobalVariable(getPCCSVName(Architecture), true);
|
||||
SP = M.getGlobalVariable(getCSVName(getStackPointer(Architecture)), true);
|
||||
auto ReturnAddressRegister = getReturnAddressRegister(Architecture);
|
||||
|
||||
Reference in New Issue
Block a user