[C++11] Expand and eliminate the LLVM_ENUM_INT_TYPE() macro

llvm-svn: 202606
This commit is contained in:
Alp Toker 2014-03-02 03:20:16 +00:00
parent 7d659c8563
commit ceb95c47c4
4 changed files with 4 additions and 4 deletions

View File

@ -699,7 +699,7 @@ private:
unsigned ParamIndex;
public:
enum LLVM_ENUM_INT_TYPE(unsigned) {
enum : unsigned {
InvalidParamIndex = ~0U,
VarArgParamIndex = ~0U/*InvalidParamIndex*/ - 1U
};

View File

@ -4636,7 +4636,7 @@ class PseudoObjectExpr : public Expr {
public:
/// NoResult - A value for the result index indicating that there is
/// no semantic result.
enum LLVM_ENUM_INT_TYPE(unsigned) { NoResult = ~0U };
enum : unsigned { NoResult = ~0U };
static PseudoObjectExpr *Create(const ASTContext &Context, Expr *syntactic,
ArrayRef<Expr*> semantic,

View File

@ -89,7 +89,7 @@ class SourceLocation {
friend class SourceManager;
friend class ASTReader;
friend class ASTWriter;
enum LLVM_ENUM_INT_TYPE(unsigned) {
enum : unsigned {
MacroIDBit = 1U << 31
};
public:

View File

@ -365,7 +365,7 @@ void Sema::AddCFAuditedAttribute(Decl *D) {
}
typedef std::vector<std::pair<unsigned, SourceLocation> > VisStack;
enum LLVM_ENUM_INT_TYPE(unsigned) { NoVisibility = ~0U };
enum : unsigned { NoVisibility = ~0U };
void Sema::AddPushedVisibilityAttribute(Decl *D) {
if (!VisContext)