Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / unittests / ExecutionEngine / Orc / OrcTestCommon.cpp
blobbc87df1fe8c6a911785279f24082752a63e0a66a
1 //===--------- OrcTestCommon.cpp - Utilities for Orc Unit Tests -----------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Common utilities for Orc unit tests.
11 //===----------------------------------------------------------------------===//
13 #include "OrcTestCommon.h"
15 using namespace llvm;
17 bool OrcNativeTarget::NativeTargetInitialized = false;
19 ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple,
20 StringRef Name)
21 : M(new Module(Name, Context)) {
22 if (Triple != "")
23 M->setTargetTriple(Triple);