aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-07-17 03:11:46 +0000
committerRui Ueyama <ruiu@google.com>2016-07-17 03:11:46 +0000
commit434b56179ea65655fa802eb3dab1b0eb8002e372 (patch)
treefea66c243dcd00ea295aa3364a0fce21aba0951f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent7a7a96e19979a57b1f257d8d8679f0c5ef38bd88 (diff)
downloadllvm-434b56179ea65655fa802eb3dab1b0eb8002e372.zip
llvm-434b56179ea65655fa802eb3dab1b0eb8002e372.tar.gz
llvm-434b56179ea65655fa802eb3dab1b0eb8002e372.tar.bz2
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
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions