[llvm] r356533 - Revert "Add workaround to build scoped enums with VS2015. NFCI."

Douglas Yung via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 17:41:13 PDT 2019


Author: dyung
Date: Tue Mar 19 17:41:12 2019
New Revision: 356533

URL: http://llvm.org/viewvc/llvm-project?rev=356533&view=rev
Log:
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.

Modified:
    llvm/trunk/include/llvm/Remarks/Remark.h
    llvm/trunk/lib/Remarks/RemarkParserImpl.h

Modified: llvm/trunk/include/llvm/Remarks/Remark.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Remarks/Remark.h?rev=356533&r1=356532&r2=356533&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Remarks/Remark.h (original)
+++ llvm/trunk/include/llvm/Remarks/Remark.h Tue Mar 19 17:41:12 2019
@@ -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;

Modified: llvm/trunk/lib/Remarks/RemarkParserImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Remarks/RemarkParserImpl.h?rev=356533&r1=356532&r2=356533&view=diff
==============================================================================
--- llvm/trunk/lib/Remarks/RemarkParserImpl.h (original)
+++ llvm/trunk/lib/Remarks/RemarkParserImpl.h Tue Mar 19 17:41:12 2019
@@ -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




More information about the llvm-commits mailing list