Mercurial > projects > ldc
diff gen/tollvm.h @ 414:ac1fcc138e42
Fixed issue with internal real representation, incorrect for non x86-32 architectures.
Cleaned up CallExp::toElem, moved implementation to tocall.cpp providing a single procedure to call arbitrary D functions fairly easily.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 28 Jul 2008 02:11:34 +0200 |
parents | bfb9d28f045a |
children | cc40db549aea |
line wrap: on
line diff
--- a/gen/tollvm.h Sun Jul 27 18:52:40 2008 +0200 +++ b/gen/tollvm.h Mon Jul 28 02:11:34 2008 +0200 @@ -34,9 +34,6 @@ LLGlobalValue::LinkageTypes DtoInternalLinkage(Dsymbol* sym); LLGlobalValue::LinkageTypes DtoExternalLinkage(Dsymbol* sym); -// convert DMD calling conv to LLVM -unsigned DtoCallingConv(LINK l); - // TODO: this one should be removed!!! LLValue* DtoPointedType(LLValue* ptr, LLValue* val); @@ -77,6 +74,8 @@ const LLArrayType* isaArray(const LLType* t); const LLStructType* isaStruct(LLValue* v); const LLStructType* isaStruct(const LLType* t); +const LLFunctionType* isaFunction(LLValue* v); +const LLFunctionType* isaFunction(const LLType* t); LLConstant* isaConstant(LLValue* v); LLConstantInt* isaConstantInt(LLValue* v); llvm::Argument* isaArgument(LLValue* v);