[lld] r276790 - [ELF] - replace error() with llvm_unreachable.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 26 11:46:13 PDT 2016


Author: grimar
Date: Tue Jul 26 13:46:13 2016
New Revision: 276790

URL: http://llvm.org/viewvc/llvm-project?rev=276790&view=rev
Log:
[ELF] - replace error() with llvm_unreachable. 

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=276790&r1=276789&r2=276790&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Tue Jul 26 13:46:13 2016
@@ -775,7 +775,7 @@ static uint64_t getSymbolValue(StringRef
       return B->getVA<ELF64BE>();
     break;
   default:
-    fatal("unsupported target");
+    llvm_unreachable("unsupported target");
   }
   error("symbol not found: " + S);
   return 0;




More information about the llvm-commits mailing list