diff options
author | Rui Ueyama <ruiu@google.com> | 2015-03-26 02:20:25 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-03-26 02:20:25 +0000 |
commit | aaf6baee501de9bad4d550628379c75bd814efed (patch) | |
tree | eb81f6f86117b825027193daef675c169302bbf9 /lld/unittests | |
parent | 3cd9096bdf78c76bf34769338bd3788d261cfda4 (diff) |
Use arithmetic type to represent alignments (not in log2) everywhere.
This is the final step of conversion. Now log2 numbers are removed
from everywhere!
Diffstat (limited to 'lld/unittests')
-rw-r--r-- | lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp b/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp index 6a1867380e6..d13e360b41a 100644 --- a/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp +++ b/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp @@ -197,7 +197,7 @@ TEST(ObjectFileYAML, oneSection) { " section: __text\n" " type: S_REGULAR\n" " attributes: [ S_ATTR_PURE_INSTRUCTIONS ]\n" - " alignment: 1\n" + " alignment: 2\n" " address: 0x12345678\n" " content: [ 0x90, 0x90 ]\n" "...\n"); @@ -232,7 +232,7 @@ TEST(ObjectFileYAML, hello_x86_64) { " section: __text\n" " type: S_REGULAR\n" " attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS]\n" - " alignment: 0\n" + " alignment: 1\n" " address: 0x0000\n" " content: [ 0x55, 0x48, 0x89, 0xe5, 0x48, 0x8d, 0x3d, 0x00,\n" " 0x00, 0x00, 0x00, 0x30, 0xc0, 0xe8, 0x00, 0x00,\n" @@ -254,7 +254,7 @@ TEST(ObjectFileYAML, hello_x86_64) { " section: __cstring\n" " type: S_CSTRING_LITERALS\n" " attributes: [ ]\n" - " alignment: 0\n" + " alignment: 1\n" " address: 0x0016\n" " content: [ 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x0a, 0x00 ]\n" "global-symbols:\n" @@ -361,7 +361,7 @@ TEST(ObjectFileYAML, hello_x86) { " section: __text\n" " type: S_REGULAR\n" " attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS]\n" - " alignment: 0\n" + " alignment: 1\n" " address: 0x0000\n" " content: [ 0x55, 0x89, 0xe5, 0x83, 0xec, 0x08, 0xe8, 0x00,\n" " 0x00, 0x00, 0x00, 0x58, 0x8d, 0x80, 0x16, 0x00,\n" @@ -391,7 +391,7 @@ TEST(ObjectFileYAML, hello_x86) { " section: __cstring\n" " type: S_CSTRING_LITERALS\n" " attributes: [ ]\n" - " alignment: 0\n" + " alignment: 1\n" " address: 0x0021\n" " content: [ 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x0a, 0x00 ]\n" "global-symbols:\n" @@ -490,7 +490,7 @@ TEST(ObjectFileYAML, hello_armv6) { " section: __text\n" " type: S_REGULAR\n" " attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS]\n" - " alignment: 2\n" + " alignment: 4\n" " address: 0x0000\n" " content: [ 0x80, 0x40, 0x2d, 0xe9, 0x10, 0x00, 0x9f, 0xe5,\n" " 0x0d, 0x70, 0xa0, 0xe1, 0x00, 0x00, 0x8f, 0xe0,\n" @@ -519,7 +519,7 @@ TEST(ObjectFileYAML, hello_armv6) { " section: __cstring\n" " type: S_CSTRING_LITERALS\n" " attributes: [ ]\n" - " alignment: 0\n" + " alignment: 1\n" " address: 0x0020\n" " content: [ 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x0a, 0x00 ]\n" "global-symbols:\n" @@ -620,7 +620,7 @@ TEST(ObjectFileYAML, hello_armv7) { " section: __text\n" " type: S_REGULAR\n" " attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS]\n" - " alignment: 1\n" + " alignment: 2\n" " address: 0x0000\n" " content: [ 0x80, 0xb5, 0x40, 0xf2, 0x06, 0x00, 0x6f, 0x46,\n" " 0xc0, 0xf2, 0x00, 0x00, 0x78, 0x44, 0xff, 0xf7,\n" @@ -660,7 +660,7 @@ TEST(ObjectFileYAML, hello_armv7) { " section: __cstring\n" " type: S_CSTRING_LITERALS\n" " attributes: [ ]\n" - " alignment: 0\n" + " alignment: 1\n" " address: 0x0016\n" " content: [ 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x0a, 0x00 ]\n" "global-symbols:\n" |