1 //===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===//
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
7 //===----------------------------------------------------------------------===//
9 // Common utilities for Orc unit tests.
11 //===----------------------------------------------------------------------===//
13 #include "OrcTestCommon.h"
17 bool OrcNativeTarget::NativeTargetInitialized
= false;
19 ModuleBuilder::ModuleBuilder(LLVMContext
&Context
, StringRef Triple
,
21 : M(new Module(Name
, Context
)) {
23 M
->setTargetTriple(Triple
);