[llvm] r210581 - Add a LLVM_NOEXCEPT to Compiler.h.

Rafael Espindola rafael.espindola at gmail.com
Tue Jun 10 13:45:52 PDT 2014


Author: rafael
Date: Tue Jun 10 15:45:52 2014
New Revision: 210581

URL: http://llvm.org/viewvc/llvm-project?rev=210581&view=rev
Log:
Add a LLVM_NOEXCEPT to Compiler.h.

This will be needed for the switch to std::error_code.

Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=210581&r1=210580&r2=210581&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Tue Jun 10 15:45:52 2014
@@ -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





More information about the llvm-commits mailing list