mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-01-31 01:35:20 +01:00
This contains a semi-functional skeleton for the implementation of the LLVM bindings for Python. The API for the Object.h interface is roughly designed but not implemented. MemoryBufferRef is implemented and actually appears to work! The ObjectFile unit test fails with a segmentation fault because the LLVM library isn't being properly initialized. The build system doesn't know about this code yet, so no alerts should fire. llvm-svn: 152397
10 lines
241 B
Python
10 lines
241 B
Python
from llvm.common import find_library
|
|
from llvm.object import ObjectFile
|
|
|
|
import unittest
|
|
|
|
class TestObjectFile(unittest.TestCase):
|
|
def test_create_from_file(self):
|
|
source = find_library()
|
|
of = ObjectFile(filename=source)
|