forked from M-Labs/artiq
artiq_run: fix bitrot in .ll/.bc runners.
This commit is contained in:
parent
0d7688017b
commit
e0297039c9
|
@ -73,8 +73,7 @@ class LLVMIRRunner(FileRunner):
|
||||||
with open(self.file, "r") as f:
|
with open(self.file, "r") as f:
|
||||||
llmodule = llvm.parse_assembly(f.read())
|
llmodule = llvm.parse_assembly(f.read())
|
||||||
llmodule.verify()
|
llmodule.verify()
|
||||||
return self.target.link([self.target.assemble(llmodule)],
|
return self.target.link([self.target.assemble(llmodule)])
|
||||||
init_fn="__modinit__")
|
|
||||||
|
|
||||||
|
|
||||||
class LLVMBitcodeRunner(FileRunner):
|
class LLVMBitcodeRunner(FileRunner):
|
||||||
|
@ -82,8 +81,7 @@ class LLVMBitcodeRunner(FileRunner):
|
||||||
with open(self.file, "rb") as f:
|
with open(self.file, "rb") as f:
|
||||||
llmodule = llvm.parse_bitcode(f.read())
|
llmodule = llvm.parse_bitcode(f.read())
|
||||||
llmodule.verify()
|
llmodule.verify()
|
||||||
return self.target.link([self.target.assemble(llmodule)],
|
return self.target.link([self.target.assemble(llmodule)])
|
||||||
init_fn="__modinit__")
|
|
||||||
|
|
||||||
|
|
||||||
class DummyScheduler:
|
class DummyScheduler:
|
||||||
|
|
Loading…
Reference in New Issue