diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-10 20:45:52 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-10 20:45:52 +0000 |
| commit | 826ba908e2313db7b79fd88f06108205cd323463 (patch) | |
| tree | f831584a07d19647b44c4a89cd596b599af39b4c | |
| parent | 2af33756c79a7792499ee6d74feeb752df00b11f (diff) | |
| download | bcm5719-llvm-826ba908e2313db7b79fd88f06108205cd323463.tar.gz bcm5719-llvm-826ba908e2313db7b79fd88f06108205cd323463.zip | |
Add a LLVM_NOEXCEPT to Compiler.h.
This will be needed for the switch to std::error_code.
llvm-svn: 210581
| -rw-r--r-- | llvm/include/llvm/Support/Compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 1edcd45bc3b..25bf32ade5f 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/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 |

