Lang Hames | dc4260d | 2015-04-20 20:41:45 +0000 | [diff] [blame] | 1 | //===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // Common utilities for Orc unit tests. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "OrcTestCommon.h" |
| 15 | |
| 16 | using namespace llvm; |
| 17 | |
Lang Hames | d22bade | 2017-04-04 17:03:49 +0000 | [diff] [blame] | 18 | bool OrcNativeTarget::NativeTargetInitialized = false; |
Lang Hames | 130a7c4 | 2015-10-28 02:40:04 +0000 | [diff] [blame] | 19 | |
Lang Hames | dc4260d | 2015-04-20 20:41:45 +0000 | [diff] [blame] | 20 | ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple, |
| 21 | StringRef Name) |
Lang Hames | 859d73c | 2016-01-09 19:50:40 +0000 | [diff] [blame] | 22 | : M(new Module(Name, Context)) { |
| 23 | if (Triple != "") |
| 24 | M->setTargetTriple(Triple); |
Lang Hames | dc4260d | 2015-04-20 20:41:45 +0000 | [diff] [blame] | 25 | } |