Fix llvm-readobj build on Windows, match noreturn attribute on reportError in headers
authorReid Kleckner <rnk@google.com>
Fri, 4 Dec 2015 21:29:53 +0000 (21:29 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 4 Dec 2015 21:29:53 +0000 (21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254769 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-readobj/llvm-readobj.h

index 58c50f5..5a10392 100644 (file)
@@ -11,6 +11,7 @@
 #define LLVM_TOOLS_LLVM_READOBJ_LLVM_READOBJ_H
 
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Compiler.h"
 #include <string>
 
 namespace llvm {
@@ -19,7 +20,7 @@ namespace llvm {
   }
 
   // Various helper functions.
-  void reportError(Twine Msg);
+  LLVM_ATTRIBUTE_NORETURN void reportError(Twine Msg);
   void error(std::error_code ec);
   bool relocAddressLess(object::RelocationRef A,
                         object::RelocationRef B);