Skip to content

Commit

Permalink
Deleted aux data containers and added version field
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Robbins authored and eschulte committed Feb 24, 2020
1 parent 7a40419 commit 2d8ffd5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 27 deletions.
23 changes: 0 additions & 23 deletions proto/AuxDataContainer.proto

This file was deleted.

12 changes: 10 additions & 2 deletions proto/IR.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@
syntax = "proto3";
package proto;

import "AuxDataContainer.proto";
import "AuxData.proto";
import "Module.proto";

message IR {
// slot 4 has been used for multiple fields in the past
// (more specifically, main_module_id and aux_data_container),
// which is a Protobuf compatibility violation, but explains why we
// reserve more field names than field numbers.
reserved "tables", "main_module_id", "aux_data_container";
reserved 2, 4;

bytes uuid = 1;
repeated Module modules = 3;
AuxDataContainer aux_data_container = 4;
map<string, AuxData> aux_data = 5;
int32 version = 6;
}
7 changes: 5 additions & 2 deletions proto/Module.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
syntax = "proto3";
package proto;

import "AuxDataContainer.proto";
import "AuxData.proto";
import "Block.proto";
import "CFG.proto";
import "DataObject.proto";
Expand Down Expand Up @@ -47,6 +47,9 @@ enum ISAID {
};

message Module {
reserved "aux_data_container";
reserved 14;

bytes uuid = 1;
string binary_path = 2;
uint64 preferred_addr = 3;
Expand All @@ -62,5 +65,5 @@ message Module {
repeated ProxyBlock proxies = 16;
repeated Section sections = 12;
map<uint64, SymbolicExpression> symbolic_operands = 13;
AuxDataContainer aux_data_container = 14;
map<string, AuxData> aux_data = 17;
}

0 comments on commit 2d8ffd5

Please sign in to comment.