view runtime/import/ldc/llvmasm.di @ 1598:20799faa301d

Merged the patch for dmd bugzilla #3620 by request of downs.
author Robert Clipsham <robert@octarineparrot.com>
date Sun, 20 Dec 2009 13:58:08 +0000
parents 9279a9dc6df3
children
line wrap: on
line source

module ldc.llvmasm;

struct __asmtuple_t(T...)
{
    T v;
}

pragma(llvm_inline_asm)
{
    void __asm( )(char[] asmcode, char[] constraints, ...);
    T    __asm(T)(char[] asmcode, char[] constraints, ...);

    template __asmtuple(T...)
    {
        __asmtuple_t!(T) __asmtuple(char[] asmcode, char[] constraints, ...);
    }
}