source: parabix-LLVM/llvm_git/bindings/python/llvm/tests/test_bitreader.py @ 4078

Last change on this file since 4078 was 4078, checked in by linmengl, 5 years ago

checkin llvm-meng source

File size: 419 bytes
Line 
1from .base import TestBase
2from ..core import OpCode
3from ..core import MemoryBuffer
4from ..core import PassRegistry
5from ..core import Context
6from ..core import Module
7from ..bit_reader import parse_bitcode
8
9class TestBitReader(TestBase):
10
11    def test_parse_bitcode(self):
12        source = self.get_test_bc()
13        m = parse_bitcode(MemoryBuffer(filename=source))
14        print m.target
15        print m.datalayout
Note: See TracBrowser for help on using the repository browser.