[PATCH] D26970: [ELF] Refactor several fatal error messages

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 02:10:26 PST 2016


evgeny777 added inline comments.


================
Comment at: ELF/InputFiles.cpp:784
   else
-    fatal("invalid file class: " + MB.getBufferIdentifier());
+    fatal(MB.getBufferIdentifier() + ": invalid file class");
 
----------------
ruiu wrote:
> This should be llvm_unreachable.
This is checked in ELF/invalid/invalid-elf.text


Repository:
  rL LLVM

https://reviews.llvm.org/D26970





More information about the llvm-commits mailing list