mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-30 20:54:19 +01:00
Added LLVM-style license headers to all our files.
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
//===-- cl_options.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "driver/cl_options.h"
|
||||
#include "gen/cl_helpers.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
//===-- driver/cl_options.h - LDC command line options ----------*- C++ -*-===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Defines the LDC command line options as handled using the LLVM command
|
||||
// line parsing library.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LDC_CL_OPTIONS_H
|
||||
#define LDC_CL_OPTIONS_H
|
||||
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
//===-- configfile.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
//===-- driver/configfile.h - LDC config file handling ----------*- C++ -*-===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Handles reading and parsing of an LDC config file (ldc.conf/ldc2.conf).
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LDC_CONF_CONFIGFILE_H
|
||||
#define LDC_CONF_CONFIGFILE_H
|
||||
|
||||
|
||||
+14
-8
@@ -1,11 +1,15 @@
|
||||
/**
|
||||
* Wrapper allowing use of LDC as drop-in replacement for DMD.
|
||||
*
|
||||
* Copyright (c) 2012 by the LDC Team.
|
||||
*
|
||||
* Command line parsing code originally
|
||||
* Copyright (c) 1999-2012 by Digital Mars.
|
||||
*/
|
||||
//===-- ldmd.cpp - Drop-in DMD replacement wrapper for LDC ----------------===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license, except for the
|
||||
// command line handling code, which originated from DMD. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Wrapper allowing use of LDC as drop-in replacement for DMD.
|
||||
//
|
||||
// The reason why full command line parsing is required instead of just
|
||||
// rewriting the names of a few switches is an annoying impedance mismatch
|
||||
// between the way how DMD handles arguments and the LLVM command line library:
|
||||
@@ -37,6 +41,8 @@
|
||||
// Note: This program inherited ugly C-style string handling and memory leaks
|
||||
// from DMD, but this should not be a problem due to the short-livedness of
|
||||
// the process.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LDC_EXE_NAME
|
||||
# error "Please define LDC_EXE_NAME to the name of the LDC executable to use."
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
//===-- linker.cpp --------------------------------------------------------===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "gen/llvm.h"
|
||||
#include "llvm/Linker.h"
|
||||
#include "llvm/ADT/Triple.h"
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
//===-- driver/linker.h - Linker invocation ---------------------*- C++ -*-===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Handles locating and executing the system linker for generating
|
||||
// libraries/executables.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LDC_GEN_LINKER_H
|
||||
#define LDC_GEN_LINKER_H
|
||||
|
||||
|
||||
+8
-4
@@ -1,7 +1,11 @@
|
||||
// Pulled out of dmd/mars.c
|
||||
|
||||
// some things are taken from llvm's llc tool
|
||||
// which uses the llvm license
|
||||
//===-- main.cpp --------------------------------------------------------===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "gen/llvmcompat.h"
|
||||
#include "gen/llvm.h"
|
||||
|
||||
+8
-8
@@ -1,11 +1,11 @@
|
||||
|
||||
// Copyright (c) 1999-2004 by Digital Mars
|
||||
// All Rights Reserved
|
||||
// written by Walter Bright
|
||||
// www.digitalmars.com
|
||||
// License for redistribution is by either the Artistic License
|
||||
// in artistic.txt, or the GNU General Public License in gnu.txt.
|
||||
// See the included readme.txt for details.
|
||||
//===-- toobj.cpp ---------------------------------------------------------===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include <cstddef>
|
||||
#include <fstream>
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
//===-- driver/toobj.h - Object file emission -------------------*- C++ -*-===//
|
||||
//
|
||||
// LDC – the LLVM D compiler
|
||||
//
|
||||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||||
// file for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Handles emission of "finished" LLVM modules to on-disk object files.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LDC_GEN_TOOBJ_H
|
||||
#define LDC_GEN_TOOBJ_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user