diff gen/tollvm.cpp @ 703:06576ece1a1b

Changed premake.lua to work with mingw. Implemented array operations, not perfect but ok for tonight. closes #89
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 13 Oct 2008 23:19:32 +0200
parents 99f32e967746
children 5a2983f97498
line wrap: on
line diff
--- a/gen/tollvm.cpp	Mon Oct 13 21:08:11 2008 +0200
+++ b/gen/tollvm.cpp	Mon Oct 13 23:19:32 2008 +0200
@@ -280,6 +280,9 @@
         assert(fdecl->type->ty == Tfunction);
         TypeFunction* ft = (TypeFunction*)fdecl->type;
 
+        // array operations are always internal
+        if (fdecl->isArrayOp)
+            return llvm::GlobalValue::InternalLinkage;
         // intrinsics are always external
         if (fdecl->llvmInternal == LLVMintrinsic)
             return llvm::GlobalValue::ExternalLinkage;