Skip to content

Commit 1798f22

Browse files
committed
[ORC] Initialize the native asm printer and parser in Orc C-API unit test.
1 parent d122d80 commit 1798f22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class OrcCAPITestBase : public testing::Test {
3636
public:
3737
static void SetUpTestCase() {
3838
LLVMInitializeNativeTarget();
39+
LLVMInitializeNativeTargetAsmParser();
40+
LLVMInitializeNativeTargetAsmPrinter();
3941

4042
// Attempt to set up a JIT instance once to verify that we can.
4143
LLVMOrcJITTargetMachineBuilderRef JTMB = nullptr;

0 commit comments

Comments
 (0)