diff options
author | Rui Ueyama <ruiu@google.com> | 2017-06-22 17:30:19 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-06-22 17:30:19 +0000 |
commit | 4402a39981063992cd8f4ca81e240a6fe7cdf4fd (patch) | |
tree | f03e508fe8780d1ebd1f2beb89f24a5cdd6ebebc /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 8a261c2565b377bd00dee3ac2fe1fa075cb910e4 (diff) | |
download | bcm5719-llvm-4402a39981063992cd8f4ca81e240a6fe7cdf4fd.tar.gz bcm5719-llvm-4402a39981063992cd8f4ca81e240a6fe7cdf4fd.zip |
Keep the original symbol name when renamed.
Previously, when symbol A is renamed B, both A and B end up having
the same name. This is because name is a symbol's attribute, and
we memcpy symbols for symbol renaming.
This pathc saves the original symbol name and restore it after memcpy
to keep the original name.
This patch shouldn't change program's meaning, but names in symbol
tables make more sense than before.
llvm-svn: 306036
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions