mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
a1e366058b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190467 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
419 B
Python
16 lines
419 B
Python
from .base import TestBase
|
|
from ..core import OpCode
|
|
from ..core import MemoryBuffer
|
|
from ..core import PassRegistry
|
|
from ..core import Context
|
|
from ..core import Module
|
|
from ..bit_reader import parse_bitcode
|
|
|
|
class TestBitReader(TestBase):
|
|
|
|
def test_parse_bitcode(self):
|
|
source = self.get_test_bc()
|
|
m = parse_bitcode(MemoryBuffer(filename=source))
|
|
print m.target
|
|
print m.datalayout
|