comparison gen/runtime.c @ 57:a9d29e9f1fed trunk

[svn r61] Added support for D-style variadic functions :)
author lindquist
date Thu, 25 Oct 2007 02:39:53 +0200
parents 0c77619e803b
children
comparison
equal deleted inserted replaced
56:3a784f7790d6 57:a9d29e9f1fed
90 llvm::GlobalVariable* LLVM_D_GetRuntimeGlobal(llvm::Module* target, const char* name) 90 llvm::GlobalVariable* LLVM_D_GetRuntimeGlobal(llvm::Module* target, const char* name)
91 { 91 {
92 // TODO maybe check the target module first, to allow overriding the runtime on a pre module basis? 92 // TODO maybe check the target module first, to allow overriding the runtime on a pre module basis?
93 // could be done and seems like it could be neat too :) 93 // could be done and seems like it could be neat too :)
94 94
95 llvm::GlobalVariable* gv = target->getNamedGlobal(name);
96 if (gv) {
97 return gv;
98 }
99
95 if (global.params.noruntime) { 100 if (global.params.noruntime) {
96 error("No implicit runtime calls allowed with -noruntime option enabled"); 101 error("No implicit runtime calls allowed with -noruntime option enabled");
97 fatal(); 102 fatal();
98 } 103 }
99 104