2015-04-21 04:41:45 +08:00
|
|
|
//===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Common utilities for Orc unit tests.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "OrcTestCommon.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2017-04-05 01:03:49 +08:00
|
|
|
bool OrcNativeTarget::NativeTargetInitialized = false;
|
2015-10-28 10:40:04 +08:00
|
|
|
|
2015-04-21 04:41:45 +08:00
|
|
|
ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple,
|
|
|
|
StringRef Name)
|
2016-01-10 03:50:40 +08:00
|
|
|
: M(new Module(Name, Context)) {
|
|
|
|
if (Triple != "")
|
|
|
|
M->setTargetTriple(Triple);
|
2015-04-21 04:41:45 +08:00
|
|
|
}
|