[DWARF] Fix debug info generation for function static variables, typedefs, and records
[oota-llvm.git] / include / llvm / ADT / None.h
index 5793bd2faef404a3d852cda2b39047e301100928..d69ec17c15f910ce0ea6a6a3ead2d02d93f8eefe 100644 (file)
@@ -19,9 +19,8 @@
 namespace llvm {
 /// \brief A simple null object to allow implicit construction of Optional<T>
 /// and similar types without having to spell out the specialization's name.
-enum NoneType {
-  None
-};
+enum class NoneType { None };
+const NoneType None = None;
 }
 
 #endif