[llvm] 1798f22 - [ORC] Initialize the native asm printer and parser in Orc C-API unit test.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 26 21:10:44 PDT 2021


Author: Lang Hames
Date: 2021-04-26T21:10:11-07:00
New Revision: 1798f2289aaaf07853857d5360d79a2bfb0fd054

URL: https://github.com/llvm/llvm-project/commit/1798f2289aaaf07853857d5360d79a2bfb0fd054
DIFF: https://github.com/llvm/llvm-project/commit/1798f2289aaaf07853857d5360d79a2bfb0fd054.diff

LOG: [ORC] Initialize the native asm printer and parser in Orc C-API unit test.

Added: 
    

Modified: 
    llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
index eaad4a206836..58e901d60648 100644
--- a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
@@ -36,6 +36,8 @@ class OrcCAPITestBase : public testing::Test {
 public:
   static void SetUpTestCase() {
     LLVMInitializeNativeTarget();
+    LLVMInitializeNativeTargetAsmParser();
+    LLVMInitializeNativeTargetAsmPrinter();
 
     // Attempt to set up a JIT instance once to verify that we can.
     LLVMOrcJITTargetMachineBuilderRef JTMB = nullptr;


        


More information about the llvm-commits mailing list