mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	the function body. This is necessary for correctness when lazily compiling. Also, flesh out the Orc unit test infrastructure slightly, and add a unit test for this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235347 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			24 lines
		
	
	
		
			723 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			723 B
		
	
	
	
		
			C++
		
	
	
	
	
	
//===--------- 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;
 | 
						|
 | 
						|
ModuleBuilder::ModuleBuilder(LLVMContext &Context, StringRef Triple,
 | 
						|
                             StringRef Name)
 | 
						|
  : M(new Module(Name, Context)),
 | 
						|
    Builder(Context) {
 | 
						|
  M->setTargetTriple(Triple);
 | 
						|
}
 |