Debian Codegraph @

llvm-project/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.cpp

raw
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.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #include "OrcTestCommon.h"
14
15 using namespace llvm;
16
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;
21
22 bool OrcNativeTarget::NativeTargetInitialized = false;
23
24 ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple,
25 StringRef Name)
26 : M(new Module(Name, Context)) {
27 if (Triple != "")
28 M->setTargetTriple(Triple);
29 }