]> granicus.if.org Git - llvm/commitdiff
Revert "Add workaround to build scoped enums with VS2015. NFCI."
authorDouglas Yung <douglas.yung@sony.com>
Wed, 20 Mar 2019 00:41:12 +0000 (00:41 +0000)
committerDouglas Yung <douglas.yung@sony.com>
Wed, 20 Mar 2019 00:41:12 +0000 (00:41 +0000)
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
lib/Remarks/RemarkParserImpl.h

index 8e1bab3d50cb06a86bc266ba90ccec6a245edd85..67fa1718808396f7e4a2b08553dcae43d488be19 100644 (file)
@@ -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;
index 581a629ee38cfc7bb88610670e61e807b57a0a8f..7e7181e3a3e1551c259fdb81c70a39ad507db660 100644 (file)
@@ -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