blob: 5fea3c89f86c286923bd5e7546744c7d4e925054 [file] [log] [blame]
Lang Hamesdc4260d2015-04-20 20:41:45 +00001//===--------- 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
16using namespace llvm;
17
18ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple,
19 StringRef Name)
20 : M(new Module(Name, Context)),
21 Builder(Context) {
22 M->setTargetTriple(Triple);
23}