Add a helper function to define symbols.
authorRui Ueyama <ruiu@google.com>
Thu, 20 Oct 2016 06:44:58 +0000 (06:44 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 20 Oct 2016 06:44:58 +0000 (06:44 +0000)
commit673c9d901882211602c5167877f750cf74465763
treeb6e99af26868d5d782975d84bc65cff63f0d121e
parentf2e78818e80ab48c949bbfd8c4867d2ec5832727
Add a helper function to define symbols.

Also replace std::copy with memcpy because in other places we are
using memcpy.

llvm-svn: 284700
lld/ELF/ELFCreator.cpp
lld/ELF/ELFCreator.h
lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h