1 //===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Common utilities for Orc unit tests.
11 //===----------------------------------------------------------------------===//
13 #include "OrcTestCommon.h"
17 const JITTargetAddress
llvm::orc::CoreAPIsBasedStandardTest::FooAddr
;
18 const JITTargetAddress
llvm::orc::CoreAPIsBasedStandardTest::BarAddr
;
19 const JITTargetAddress
llvm::orc::CoreAPIsBasedStandardTest::BazAddr
;
20 const JITTargetAddress
llvm::orc::CoreAPIsBasedStandardTest::QuxAddr
;
22 bool OrcNativeTarget::NativeTargetInitialized
= false;
24 ModuleBuilder::ModuleBuilder(LLVMContext
&Context
, StringRef Triple
,
26 : M(new Module(Name
, Context
)) {
28 M
->setTargetTriple(Triple
);