mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
Extend error message if -noruntime is used.
The name of the implicit called runtime function gives a hint about what goes wrong.
This commit is contained in:
parent
bdc1f44088
commit
d25d28f914
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue