[PATCH 2/4] split memops from unops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The field 'orig_type' is only used for casts while 'offset' is only
used for memops.

Split this in two separated sub-structures so taht we can add an
additional field for memops without increasing the total size.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 linearize.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/linearize.h b/linearize.h
index 1184df981..f7b5c3f44 100644
--- a/linearize.h
+++ b/linearize.h
@@ -108,7 +108,10 @@ struct instruction {
 		struct /* unops */ {
 			pseudo_t src;
 			struct symbol *orig_type;	/* casts */
-			unsigned int offset;		/* memops */
+		};
+		struct /* memops */ {
+			pseudo_t addr;
+			unsigned int offset;
 		};
 		struct /* binops and sel */ {
 			pseudo_t src1, src2, src3;
-- 
2.18.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux