Define a getter function for a lazily-created object.
authorRui Ueyama <ruiu@google.com>
Thu, 22 Dec 2016 05:31:52 +0000 (05:31 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 22 Dec 2016 05:31:52 +0000 (05:31 +0000)
commit96aff3751f4dc93e5526767562c98df1a465e031
treee7e9cefac4a20f1c23fc989db33dfbb54032f5e1
parent49797ca6be3f13148dc8a92681579a3278519d06
Define a getter function for a lazily-created object.

Previously, you had to call initDemangledSyms() before accessing DemangledSyms.
Now getDemangledSyms() initializes it and then returns it. So it is now less easy
to use it in a wrong way.

llvm-svn: 290323
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h