From d25d28f9148e28e717f646bac3612174dbafcdde Mon Sep 17 00:00:00 2001 From: Kai Nacke Date: Sun, 8 Dec 2013 20:24:08 +0100 Subject: [PATCH] Extend error message if -noruntime is used. The name of the implicit called runtime function gives a hint about what goes wrong. --- gen/runtime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/runtime.cpp b/gen/runtime.cpp index 66f26b73d0..e5047c62e1 100644 --- a/gen/runtime.cpp +++ b/gen/runtime.cpp @@ -77,7 +77,7 @@ void LLVM_D_FreeRuntime() llvm::Function* LLVM_D_GetRuntimeFunction(llvm::Module* target, const char* name) { if (noruntime) { - error("No implicit runtime calls allowed with -noruntime option enabled"); + error("No implicit runtime calls (%s) allowed with -noruntime option enabled", name); fatal(); } @@ -109,7 +109,7 @@ llvm::GlobalVariable* LLVM_D_GetRuntimeGlobal(llvm::Module* target, const char* } if (noruntime) { - error("No implicit runtime calls allowed with -noruntime option enabled"); + error("No implicit runtime calls (%s) allowed with -noruntime option enabled", name); fatal(); }