diff options
author | Alp Toker <alp@nuanti.com> | 2014-03-02 03:20:38 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-03-02 03:20:38 +0000 |
commit | 18510b7e431b5e8050f546edea904dcb43f46a48 (patch) | |
tree | 5283b7976797e827fb33b83b18a785d5ef060edc /include/llvm/IR | |
parent | 243491693bda5368a8c447f35983fc946a696b56 (diff) | |
download | llvm-18510b7e431b5e8050f546edea904dcb43f46a48.tar.gz llvm-18510b7e431b5e8050f546edea904dcb43f46a48.tar.bz2 llvm-18510b7e431b5e8050f546edea904dcb43f46a48.tar.xz |
[C++11] Expand and eliminate the LLVM_ENUM_INT_TYPE() macro
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR')
-rw-r--r-- | include/llvm/IR/Attributes.h | 2 | ||||
-rw-r--r-- | include/llvm/IR/InlineAsm.h | 2 | ||||
-rw-r--r-- | include/llvm/IR/Metadata.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index bb62492db8..f240211a54 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -202,7 +202,7 @@ public: /// index `1'. class AttributeSet { public: - enum AttrIndex LLVM_ENUM_INT_TYPE(unsigned) { + enum AttrIndex : unsigned { ReturnIndex = 0U, FunctionIndex = ~0U }; diff --git a/include/llvm/IR/InlineAsm.h b/include/llvm/IR/InlineAsm.h index 3398a83e36..652d3710e7 100644 --- a/include/llvm/IR/InlineAsm.h +++ b/include/llvm/IR/InlineAsm.h @@ -197,7 +197,7 @@ public: // These are helper methods for dealing with flags in the INLINEASM SDNode // in the backend. - enum LLVM_ENUM_INT_TYPE(uint32_t) { + enum : uint32_t { // Fixed operands on an INLINEASM SDNode. Op_InputChain = 0, Op_AsmString = 1, diff --git a/include/llvm/IR/Metadata.h b/include/llvm/IR/Metadata.h index 9659c2e05c..2d272d3fce 100644 --- a/include/llvm/IR/Metadata.h +++ b/include/llvm/IR/Metadata.h @@ -28,7 +28,7 @@ template<typename ValueSubClass, typename ItemParentClass> class SymbolTableListTraits; -enum LLVMConstants LLVM_ENUM_INT_TYPE(uint32_t) { +enum LLVMConstants : uint32_t { DEBUG_METADATA_VERSION = 1 // Current debug info version number. }; |