| commit | 434b56179ea65655fa802eb3dab1b0eb8002e372 | [log] [tgz] |
|---|---|---|
| author | Rui Ueyama <ruiu@google.com> | Sun Jul 17 03:11:46 2016 +0000 |
| committer | Rui Ueyama <ruiu@google.com> | Sun Jul 17 03:11:46 2016 +0000 |
| tree | fea66c243dcd00ea295aa3364a0fce21aba0951f | |
| parent | 7a7a96e19979a57b1f257d8d8679f0c5ef38bd88 [diff] |
Add a pointer to a source file to SymbolBody. Previously, each subclass of SymbolBody had a pointer to a source file from which it was created. So, there was no single way to get a source file for a symbol. We had getSourceFile<ELFT>(), but the function was a bit inconvenient as it's a template. This patch makes SymbolBody have a pointer to a source file. If a symbol is not created from a file, the pointer has a nullptr. llvm-svn: 275701