[llvm] r240142 - MIR Serialization: use default member initializers to initialize yaml::MachineFunction. NFC.

Alex Lorenz arphaman at gmail.com
Fri Jun 19 10:36:02 PDT 2015


Author: arphaman
Date: Fri Jun 19 12:36:02 2015
New Revision: 240142

URL: http://llvm.org/viewvc/llvm-project?rev=240142&view=rev
Log:
MIR Serialization: use default member initializers to initialize yaml::MachineFunction. NFC.

Default member initializers are permitted since r236244.

Modified:
    llvm/trunk/include/llvm/CodeGen/MIRYamlMapping.h

Modified: llvm/trunk/include/llvm/CodeGen/MIRYamlMapping.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MIRYamlMapping.h?rev=240142&r1=240141&r2=240142&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MIRYamlMapping.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MIRYamlMapping.h Fri Jun 19 12:36:02 2015
@@ -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> {





More information about the llvm-commits mailing list