[llvm] [cmake] Add possibility to use ChooseMSVCCRT.cmake when include LLVM library
[llvm-core.git] / unittests / ExecutionEngine / Orc / OrcTestCommon.cpp
blob2a3223a97319345a2ffd0d2388a06f6b2f13e4a4
1 //===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Common utilities for Orc unit tests.
11 //===----------------------------------------------------------------------===//
13 #include "OrcTestCommon.h"
15 using namespace llvm;
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,
25 StringRef Name)
26 : M(new Module(Name, Context)) {
27 if (Triple != "")
28 M->setTargetTriple(Triple);