From a90778f4d661b038fba7231b203611bc8d3f1708 Mon Sep 17 00:00:00 2001 From: Douglas Yung Date: Wed, 20 Mar 2019 00:41:12 +0000 Subject: [PATCH] Revert "Add workaround to build scoped enums with VS2015. NFCI." This reverts commit 6080a6fb1949a2bdf053245d6062c7bf58dae7a6 (r356532). Clang does not accept this syntax, so reverting this until I can find something that works across all compilers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356533 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Remarks/Remark.h | 2 +- lib/Remarks/RemarkParserImpl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Remarks/Remark.h b/include/llvm/Remarks/Remark.h index 8e1bab3d50c..67fa1718808 100644 --- a/include/llvm/Remarks/Remark.h +++ b/include/llvm/Remarks/Remark.h @@ -62,7 +62,7 @@ enum class Type { /// A remark type used for both emission and parsing. struct Remark { /// The type of the remark. - enum class Type RemarkType = Type::Unknown; + enum Type RemarkType = Type::Unknown; /// Name of the pass that triggers the emission of this remark. StringRef PassName; diff --git a/lib/Remarks/RemarkParserImpl.h b/lib/Remarks/RemarkParserImpl.h index 581a629ee38..7e7181e3a3e 100644 --- a/lib/Remarks/RemarkParserImpl.h +++ b/lib/Remarks/RemarkParserImpl.h @@ -21,7 +21,7 @@ struct ParserImpl { // The parser kind. This is used as a tag to safely cast between // implementations. - enum class Kind ParserKind; + enum Kind ParserKind; }; } // end namespace remarks } // end namespace llvm -- 2.40.0