[llvm.py] Implement interface to object files

It is now possible to load object files and scan over sections, symbols,
and relocations! Includes test code with partial coverage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152482 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gregory Szorc
2012-03-10 04:41:24 +00:00
parent 51cf866163
commit 61e22cd85c
10 changed files with 622 additions and 146 deletions

View File

@ -0,0 +1,9 @@
from llvm.core import MemoryBuffer
from .base import TestBase
class TestCore(TestBase):
def test_memory_buffer_create_from_file(self):
source = self.get_test_binary()
MemoryBuffer(filename=source)