[llvm] r254769 - Fix llvm-readobj build on Windows, match noreturn attribute on reportError in headers
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 4 13:29:53 PST 2015
Author: rnk
Date: Fri Dec 4 15:29:53 2015
New Revision: 254769
URL: http://llvm.org/viewvc/llvm-project?rev=254769&view=rev
Log:
Fix llvm-readobj build on Windows, match noreturn attribute on reportError in headers
Modified:
llvm/trunk/tools/llvm-readobj/llvm-readobj.h
Modified: llvm/trunk/tools/llvm-readobj/llvm-readobj.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/llvm-readobj.h?rev=254769&r1=254768&r2=254769&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/llvm-readobj.h (original)
+++ llvm/trunk/tools/llvm-readobj/llvm-readobj.h Fri Dec 4 15:29:53 2015
@@ -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);
More information about the llvm-commits
mailing list