Skip to content

Commit 879f6c5

Browse files
committed
Change enum values to be distinct from Linux on Z flags.
1 parent 9586e1a commit 879f6c5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/Target/SystemZ/SystemZInstrInfo.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,11 @@ enum {
7676

7777
// z/OS XPLink specific: classifies the types of
7878
// accesses to the ADA (Associated Data Area).
79-
// These enums contains values that overlap with the above MO_ enums,
80-
// but that's fine since the above enums are used with ELF,
81-
// while these values are used with z/OS.
79+
// These enum values should not overlap with the above MO_ enums.
8280
enum {
83-
MO_ADA_DATA_SYMBOL_ADDR = 1,
84-
MO_ADA_INDIRECT_FUNC_DESC,
85-
MO_ADA_DIRECT_FUNC_DESC,
81+
MO_ADA_DATA_SYMBOL_ADDR = (1 << 2),
82+
MO_ADA_INDIRECT_FUNC_DESC = (2 << 2),
83+
MO_ADA_DIRECT_FUNC_DESC = (3 << 2),
8684
};
8785

8886
// Classifies a branch.

0 commit comments

Comments
 (0)