[yaml2obj][ELF] Ensure more fields are zero'd.
authorSean Silva <silvas@purdue.edu>
Tue, 18 Jun 2013 01:11:21 +0000 (01:11 +0000)
committerSean Silva <silvas@purdue.edu>
Tue, 18 Jun 2013 01:11:21 +0000 (01:11 +0000)
commitf62a6005f35837a43924a4bf32416c56798daf6b
treea9610e3f3db9995bfcf2ec26c26c7fea3700be6f
parentcd3523c12d37a3ef7f394556dd4be541609873e9
[yaml2obj][ELF] Ensure more fields are zero'd.

I was spotting garbage in the output. I'd like to just zero the entire
ELFYAML::Section to be sure, but it contains non-POD types. (I'm also
trying to avoid bloating the ELFYAML::Foo classes with a bunch of
constructor code).

No test, since this is by its very nature unpredictable. I'm pretty sure
that one of the sanitizers would catch it immediately though.

llvm-svn: 184160
llvm/tools/yaml2obj/yaml2elf.cpp