Created by: nilayvaish
This patch does two things:
-
Replaces int with enum type where possible.
-
Adds a compiler option "-fshort-enums" for using short enums if possible. This reduces the space used for storing these enum values which results in reduction in size of the static library by 3592 bytes.
Before: -r-xr-xr-x 1 nilayvaish eng 2778294 Nov 23 16:39 blaze-bin/third_party/dynamorio/libdynamorio.a
After: -r-xr-xr-x 1 nilayvaish eng 2774702 Nov 23 22:22 blaze-bin/third_party/dynamorio/libdynamorio.a
Issue: #2717