mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	CompilationGraph and LanguageMap definitions do not use special syntax anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111862 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TableGen
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TableGen
		
	
	
	
	
	
//===- Simple.td - A simple LLVMC-based driver ----------------------------===//
 | 
						|
//
 | 
						|
//                     The LLVM Compiler Infrastructure
 | 
						|
//
 | 
						|
// This file is distributed under the University of Illinois Open Source
 | 
						|
// License. See LICENSE.TXT for details.
 | 
						|
//
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
//
 | 
						|
// A simple LLVMC-based gcc wrapper.
 | 
						|
//
 | 
						|
// To compile, use this command:
 | 
						|
//
 | 
						|
//      $ cd $LLVM_OBJ_DIR/tools/llvmc
 | 
						|
//      $ make BUILD_EXAMPLES=1
 | 
						|
//
 | 
						|
// Run as:
 | 
						|
//
 | 
						|
//      $ $LLVM_OBJ_DIR/$(BuildMode)/bin/Simple
 | 
						|
//
 | 
						|
// For instructions on how to build your own LLVMC-based driver, see
 | 
						|
// the 'examples/Skeleton' directory.
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
 | 
						|
include "llvm/CompilerDriver/Common.td"
 | 
						|
 | 
						|
def gcc : Tool<
 | 
						|
[(in_language "c"),
 | 
						|
 (out_language "executable"),
 | 
						|
 (output_suffix "out"),
 | 
						|
 (command "gcc"),
 | 
						|
 (sink),
 | 
						|
 | 
						|
 // -o is what is used by default, out_file_option here is included for
 | 
						|
 // instructive purposes.
 | 
						|
 (out_file_option "-o")
 | 
						|
]>;
 | 
						|
 | 
						|
def LanguageMap : LanguageMap<[(lang_to_suffixes "c", "c")]>;
 | 
						|
 | 
						|
def CompilationGraph : CompilationGraph<[(edge "root", "gcc")]>;
 |