diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-09-11 00:23:08 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-09-11 00:23:08 +0000 |
commit | 8184ca673bbc23d55f17d903f98f5382f2b7da79 (patch) | |
tree | 0c93476ed4d696ef10e23ba6a727e838c7f14a62 /bindings/python/llvm/tests | |
parent | 699f8c3524eb179f7cb8302b4a5d19abbd547125 (diff) | |
download | external_llvm-8184ca673bbc23d55f17d903f98f5382f2b7da79.zip external_llvm-8184ca673bbc23d55f17d903f98f5382f2b7da79.tar.gz external_llvm-8184ca673bbc23d55f17d903f98f5382f2b7da79.tar.bz2 |
[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
Diffstat (limited to 'bindings/python/llvm/tests')
-rw-r--r-- | bindings/python/llvm/tests/test_core.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/python/llvm/tests/test_core.py b/bindings/python/llvm/tests/test_core.py index bd792a1..3fdaf45 100644 --- a/bindings/python/llvm/tests/test_core.py +++ b/bindings/python/llvm/tests/test_core.py @@ -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() |