llvm-cvtres: Split addChild(ID) into two functions
authorNico Weber <nicolasweber@gmx.de>
Tue, 23 Apr 2019 18:46:53 +0000 (18:46 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 23 Apr 2019 18:46:53 +0000 (18:46 +0000)
commit6967da8ffafe094507b153a93c607b95f2ab22a6
treed53c7b223908c9a0d9b46ca1f6456d2d2b56afed
parent433eecadeef854782e8f789940bb35682ef7857e
llvm-cvtres: Split addChild(ID) into two functions

Before, there was an IsData parameter. Now, there are two different
functions for data nodes and ID nodes. No behavior change, needed for a
follow-up change to make two data nodes (but not two ID nodes) with the
same ID an error.

For consistency, rename another addChild() overload to addNameChild().

llvm-svn: 359024
llvm/include/llvm/Object/WindowsResource.h
llvm/lib/Object/WindowsResource.cpp