diff options
| author | Pavel Labath <pavel@labath.sk> | 2022-07-12 12:17:29 +0200 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2022-07-12 12:17:29 +0200 |
| commit | 918b1e7bbdd7f7b0228fa2535190f52c4b54d346 (patch) | |
| tree | cbee59858086342f23ebb131b202c9ebd8791720 /lldb/test/API/python_api/section | |
| parent | 4135abca897d1b945193f767cbf42a200b55bbdc (diff) | |
| download | llvm-918b1e7bbdd7f7b0228fa2535190f52c4b54d346.zip llvm-918b1e7bbdd7f7b0228fa2535190f52c4b54d346.tar.gz llvm-918b1e7bbdd7f7b0228fa2535190f52c4b54d346.tar.bz2 | |
Revert "[lldb] add SBSection.alignment to python bindings"
The patch didn't get proper attribution. Will recommit.
This reverts commit 4135abca897d1b945193f767cbf42a200b55bbdc.
Diffstat (limited to 'lldb/test/API/python_api/section')
| -rw-r--r-- | lldb/test/API/python_api/section/TestSectionAPI.py | 11 | ||||
| -rw-r--r-- | lldb/test/API/python_api/section/aligned.yaml | 14 |
2 files changed, 0 insertions, 25 deletions
diff --git a/lldb/test/API/python_api/section/TestSectionAPI.py b/lldb/test/API/python_api/section/TestSectionAPI.py index ab9ae56..51a0037 100644 --- a/lldb/test/API/python_api/section/TestSectionAPI.py +++ b/lldb/test/API/python_api/section/TestSectionAPI.py @@ -37,14 +37,3 @@ class SectionAPITestCase(TestBase): self.assertIsNotNone(data_section) self.assertEqual(data_section.target_byte_size, 1) - - def test_get_alignment(self): - exe = self.getBuildArtifact("aligned.out") - self.yaml2obj("aligned.yaml", exe) - target = self.dbg.CreateTarget(exe) - self.assertTrue(target, VALID_TARGET) - - # exe contains a single section aligned to 0x1000 - section = target.modules[0].sections[0] - self.assertEqual(section.GetAlignment(), 0x1000) - self.assertEqual(section.alignment, 0x1000) diff --git a/lldb/test/API/python_api/section/aligned.yaml b/lldb/test/API/python_api/section/aligned.yaml deleted file mode 100644 index f96d484..0000000 --- a/lldb/test/API/python_api/section/aligned.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- !ELF -FileHeader: - Class: ELFCLASS64 - Data: ELFDATA2LSB - Type: ET_EXEC - Machine: EM_X86_64 - Entry: 0x0000000000400000 -Sections: - - Name: .text1 - Type: SHT_PROGBITS - Flags: [ SHF_ALLOC, SHF_EXECINSTR ] - Address: 0x0000000000400000 - AddressAlign: 0x0000000000001000 - Size: 0xb0 |
