mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Use llvm_unreachable instead of assert(0).
Also removed some unused functions.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user