mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Use llvm_unreachable instead of assert(0).
Also removed some unused functions.
This commit is contained in:
parent
28a65ff689
commit
8ff3a8060a
18 changed files with 68 additions and 166 deletions
|
@ -89,11 +89,7 @@ llvm::Function* LLVM_D_GetRuntimeFunction(llvm::Module* target, const char* name
|
|||
return fn;
|
||||
|
||||
fn = M->getFunction(name);
|
||||
if (!fn) {
|
||||
printf("Runtime function '%s' was not found\n", name);
|
||||
assert(0);
|
||||
//return NULL;
|
||||
}
|
||||
assert(fn && "Runtime function not found.");
|
||||
|
||||
LLFunctionType* fnty = fn->getFunctionType();
|
||||
LLFunction* resfn = llvm::cast<llvm::Function>(target->getOrInsertFunction(name, fnty));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue