mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Use llvm_unreachable instead of assert(0).
Also removed some unused functions.
This commit is contained in:
@@ -139,7 +139,7 @@ void emit_file(llvm::TargetMachine &Target, llvm::Module& m, llvm::raw_fd_ostrea
|
||||
|
||||
llvm::formatted_raw_ostream fout(out);
|
||||
if (Target.addPassesToEmitFile(Passes, fout, fileType, codeGenOptLevel()))
|
||||
assert(0 && "no support for asm output");
|
||||
llvm_unreachable("no support for asm output");
|
||||
|
||||
Passes.doInitialization();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user