view druntime/src/compiler/ldc/compiler.d @ 1463:a5526b7a5ae6

D2: Applied function type from D1 frontend that got removed in D2, it's critical for member function type to be correct. Fixed a bunch of type discrepancies in druntime object.di vs. genobj.d . Disabled (#if 0) some potentally very large type dumps for -vv . Updated classinfo and typeinfo generation for D2, almost complete now. Added finer grained checks for vtbl type mismatching, aids debugging.
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Wed, 03 Jun 2009 02:28:48 +0200
parents e0b2d67cfe7c
children
line wrap: on
line source

/**
 * Compiler information and associated routines.
 *
 * Copyright: Copyright Digital Mars 2000 - 2009.
 * License:   <a href="http://www.boost.org/LICENSE_1_0.txt>Boost License 1.0</a>.
 * Authors:   Walter Bright
 *
 *          Copyright Digital Mars 2000 - 2009.
 * Distributed under the Boost Software License, Version 1.0.
 *    (See accompanying file LICENSE_1_0.txt or copy at
 *          http://www.boost.org/LICENSE_1_0.txt)
 */
module rt.compiler;

// Identify the compiler used and its various features.

const
{
    // Vendor specific string naming the compiler
    char[] name = "Digital Mars D";

    // Master list of D compiler vendors
    enum Vendor
    {
        DigitalMars = 1
    }

    // Which vendor we are
    Vendor vendor = Vendor.DigitalMars;


    // The vendor specific version number, as in
    // version_major.version_minor
    uint version_major = 0;
    uint version_minor = 0;


    // The version of the D Programming Language Specification
    // Supported by the compiler
    uint D_major = 0;
    uint D_minor = 0;
}