summaryrefslogtreecommitdiff
path: root/bindings/python/llvm/tests/test_core.py
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-09-11 00:23:08 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-09-11 00:23:08 +0000
commit8184ca673bbc23d55f17d903f98f5382f2b7da79 (patch)
tree0c93476ed4d696ef10e23ba6a727e838c7f14a62 /bindings/python/llvm/tests/test_core.py
parent699f8c3524eb179f7cb8302b4a5d19abbd547125 (diff)
downloadllvm-8184ca673bbc23d55f17d903f98f5382f2b7da79.tar.gz
llvm-8184ca673bbc23d55f17d903f98f5382f2b7da79.tar.bz2
llvm-8184ca673bbc23d55f17d903f98f5382f2b7da79.tar.xz
[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/test_core.py')
-rw-r--r--bindings/python/llvm/tests/test_core.py4
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 bd792a1033..3fdaf455fd 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()