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 58c50f58d750c7fd7e51bf8f956e077a1dd174cf..5a103920c165e0377e4ea2d2b72734e7aac8b3e7 100644 (file)
@@ -11,6 +11,7 @@
 #define LLVM_TOOLS_LLVM_READOBJ_LLVM_READOBJ_H
 
 #include "llvm/Support/CommandLine.h"
 #define LLVM_TOOLS_LLVM_READOBJ_LLVM_READOBJ_H
 
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Compiler.h"
 #include <string>
 
 namespace llvm {
 #include <string>
 
 namespace llvm {
@@ -19,7 +20,7 @@ namespace llvm {
   }
 
   // Various helper functions.
   }
 
   // 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);
   void error(std::error_code ec);
   bool relocAddressLess(object::RelocationRef A,
                         object::RelocationRef B);