From: Rafael Espindola Date: Tue, 10 Jun 2014 20:45:52 +0000 (+0000) Subject: Add a LLVM_NOEXCEPT to Compiler.h. X-Git-Tag: android-x86-7.1-r4~60921 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=40b0a148a217d8826af26fbdc8e7b13d06fdb33b;p=android-x86%2Fexternal-llvm.git Add a LLVM_NOEXCEPT to Compiler.h. This will be needed for the switch to std::error_code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210581 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index 1edcd45bc3b..25bf32ade5f 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -61,6 +61,12 @@ #define LLVM_MSC_PREREQ(version) 0 #endif +#ifndef _MSC_VER +#define LLVM_NOEXCEPT noexcept +#else +#define LLVM_NOEXCEPT +#endif + /// \brief Does the compiler support r-value reference *this? /// /// Sadly, this is separate from just r-value reference support because GCC