mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
BinaryFile: add architecture-dependent fields
Add return address register and minimal final stack offset in Arch.
This commit is contained in:
@@ -50,6 +50,8 @@ void GeneratedCodeBasicInfo::run(Module &M) {
|
||||
DelaySlotSize = QMD.extract<uint32_t>(Tuple, Index++);
|
||||
PC = M.getGlobalVariable(QMD.extract<StringRef>(Tuple, Index++), true);
|
||||
SP = M.getGlobalVariable(QMD.extract<StringRef>(Tuple, Index++), true);
|
||||
RA = M.getGlobalVariable(QMD.extract<StringRef>(Tuple, Index++), true);
|
||||
MinimalFSO = QMD.extract<int64_t>(Tuple, Index++);
|
||||
auto Operands = QMD.extract<MDTuple *>(Tuple, Index++)->operands();
|
||||
for (const MDOperand &Operand : Operands) {
|
||||
StringRef Name = QMD.extract<StringRef>(Operand.get());
|
||||
|
||||
Reference in New Issue
Block a user