Mercurial > projects > ldc
diff gen/functions.cpp @ 443:44f08170f4ef
Removed tango from the repository and instead added a runtime dir with the files needed to patch and build tango from svn.
Reworked the LLVMDC specific pragmas.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Fri, 01 Aug 2008 00:32:06 +0200 |
parents | 74101be2a553 |
children | cc40db549aea |
line wrap: on
line diff
--- a/gen/functions.cpp Thu Jul 31 19:14:49 2008 +0200 +++ b/gen/functions.cpp Fri Aug 01 00:32:06 2008 +0200 @@ -253,7 +253,7 @@ assert(fn); } else if (fdecl->llvmInternal == LLVMva_intrinsic) { - fn = gIR->module->getOrInsertFunction(fdecl->llvmInternal1, fty); + fn = gIR->module->getOrInsertFunction(fdecl->intrinsicName, fty); assert(fn); } else @@ -405,9 +405,9 @@ } // mangled name - char* mangled_name; + const char* mangled_name; if (fdecl->llvmInternal == LLVMintrinsic) - mangled_name = fdecl->llvmInternal1; + mangled_name = fdecl->intrinsicName.c_str(); else mangled_name = fdecl->mangle();