llvm-6502/include/llvm
Alex Lorenz 5f0fc6da46 MIR Serialization: initialize the fields without the default initializers in yaml::MachineFunction
My commit r239790 which introduced serialization for simple machine function attributes didn't
initialize them when parsing because I have misread the documentation for YAML IO's mapOptional
method. The mapOptional method doesn't actually set the values to the values returned by the
default constructor for that type when the key value pair is missing, it just doesn't modify
those values, so they still contain the value that was set during initialization by the default
constructor. But the fields in yaml::MachineFunction with types like unsigned and bool are not
initialized by default, and thus they can still be uninitialized after mapOptional during parsing.
This commit adds default initialization for those fields to prevent this. 


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240054 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-18 20:57:41 +00:00
..
ADT Add 'shave' processor name to Triple 2015-06-12 18:31:38 +00:00
Analysis [CallGraph] Teach the CallGraph about non-leaf intrinsics. 2015-06-18 19:28:26 +00:00
AsmParser
Bitcode Add missing include. 2015-06-17 21:08:22 +00:00
CodeGen MIR Serialization: initialize the fields without the default initializers in yaml::MachineFunction 2015-06-18 20:57:41 +00:00
Config [autoconf] Detect OLE32 for mingw. 2015-06-18 04:16:05 +00:00
DebugInfo
ExecutionEngine [ExecutionEngine] ArrayRefize argument passing. 2015-06-13 19:50:29 +00:00
IR [CallGraph] Teach the CallGraph about non-leaf intrinsics. 2015-06-18 19:28:26 +00:00
IRReader
LibDriver
LineEditor
Linker
LTO LTO: Introduce LTOModule::getSymbolGV(). 2015-06-18 05:10:06 +00:00
MC [MC] Adding prettyPrintAsm to MCTargetStreamer to allow targets to specialize how instructions are printed to asm. 2015-06-18 20:43:22 +00:00
Object Avoid a "always true" warning from gcc. 2015-06-15 14:49:41 +00:00
Option
Passes
ProfileData
Support [SPARC] Repair GOT references to internal symbols. 2015-06-18 15:05:15 +00:00
TableGen [TableGen] Remove unused method declaration. NFC 2015-06-16 05:44:06 +00:00
Target TargetRegisterInfo: Make the concept of imprecise lane masks explicit 2015-06-16 18:22:26 +00:00
Transforms Refactor RecurrenceInstDesc 2015-06-16 22:59:45 +00:00
CMakeLists.txt
InitializePasses.h Protection against stack-based memory corruption errors using SafeStack 2015-06-15 21:07:11 +00:00
LinkAllIR.h
LinkAllPasses.h Protection against stack-based memory corruption errors using SafeStack 2015-06-15 21:07:11 +00:00
module.modulemap modules: Mark CodeGen/DIEValues.def as a textual inclusion 2015-06-16 00:43:52 +00:00
module.modulemap.build
Pass.h
PassAnalysisSupport.h
PassInfo.h
PassRegistry.h
PassSupport.h