Lang Hames | dc4260d | 2015-04-20 20:41:45 +0000 | [diff] [blame] | 1 | //===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 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 |
Lang Hames | dc4260d | 2015-04-20 20:41:45 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // Common utilities for Orc unit tests. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "OrcTestCommon.h" |
| 14 | |
| 15 | using namespace llvm; |
| 16 | |
Lang Hames | fd0c1e71 | 2018-07-20 18:31:50 +0000 | [diff] [blame] | 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 | |
Lang Hames | d22bade | 2017-04-04 17:03:49 +0000 | [diff] [blame] | 22 | bool OrcNativeTarget::NativeTargetInitialized = false; |
Lang Hames | 130a7c4 | 2015-10-28 02:40:04 +0000 | [diff] [blame] | 23 | |
Lang Hames | dc4260d | 2015-04-20 20:41:45 +0000 | [diff] [blame] | 24 | ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple, |
| 25 | StringRef Name) |
Lang Hames | 859d73c | 2016-01-09 19:50:40 +0000 | [diff] [blame] | 26 | : M(new Module(Name, Context)) { |
| 27 | if (Triple != "") |
| 28 | M->setTargetTriple(Triple); |
Lang Hames | dc4260d | 2015-04-20 20:41:45 +0000 | [diff] [blame] | 29 | } |