[python-bindings] Implemented the PassRegistry class and the calls to initialize/shutdown llvm. Also included an initialize_llvm declaration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190456 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Gottesman
2013-09-11 00:23:08 +00:00
parent 699f8c3524
commit 8184ca673b
2 changed files with 72 additions and 0 deletions

View File

@ -1,6 +1,7 @@
from .base import TestBase
from ..core import OpCode
from ..core import MemoryBuffer
from ..core import PassRegistry
class TestCore(TestBase):
def test_opcode(self):
@ -25,3 +26,6 @@ class TestCore(TestBase):
source = self.get_test_file()
m = MemoryBuffer(filename=source)
self.assertEqual(len(m), 50)
def test_create_passregistry(self):
PassRegistry()