MIR Serialization: use default member initializers to initialize yaml::MachineFunctio...
authorAlex Lorenz <arphaman@gmail.com>
Fri, 19 Jun 2015 17:36:02 +0000 (17:36 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 19 Jun 2015 17:36:02 +0000 (17:36 +0000)
Default member initializers are permitted since r236244.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240142 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MIRYamlMapping.h

index 9f5dbb701badad1c14ebb83b8487821852a661ed..f7118fe1e811fde1980f6ab2566983d8a604d96c 100644 (file)
@@ -26,15 +26,9 @@ namespace yaml {
 
 struct MachineFunction {
   StringRef Name;
-  unsigned Alignment;
-  bool ExposesReturnsTwice;
-  bool HasInlineAsm;
-
-  MachineFunction() {
-    Alignment = 0;
-    ExposesReturnsTwice = false;
-    HasInlineAsm = false;
-  }
+  unsigned Alignment = 0;
+  bool ExposesReturnsTwice = false;
+  bool HasInlineAsm = false;
 };
 
 template <> struct MappingTraits<MachineFunction> {