blob: 2a3223a97319345a2ffd0d2388a06f6b2f13e4a4 [file] [log] [blame]
Lang Hamesdc4260d2015-04-20 20:41:45 +00001//===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Lang Hamesdc4260d2015-04-20 20:41:45 +00006//
7//===----------------------------------------------------------------------===//
8//
9// Common utilities for Orc unit tests.
10//
11//===----------------------------------------------------------------------===//
12
13#include "OrcTestCommon.h"
14
15using namespace llvm;
16
Lang Hamesfd0c1e712018-07-20 18:31:50 +000017const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::FooAddr;
18const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::BarAddr;
19const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::BazAddr;
20const JITTargetAddress llvm::orc::CoreAPIsBasedStandardTest::QuxAddr;
21
Lang Hamesd22bade2017-04-04 17:03:49 +000022bool OrcNativeTarget::NativeTargetInitialized = false;
Lang Hames130a7c42015-10-28 02:40:04 +000023
Lang Hamesdc4260d2015-04-20 20:41:45 +000024ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple,
25 StringRef Name)
Lang Hames859d73c2016-01-09 19:50:40 +000026 : M(new Module(Name, Context)) {
27 if (Triple != "")
28 M->setTargetTriple(Triple);
Lang Hamesdc4260d2015-04-20 20:41:45 +000029}