aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-06-22 00:57:09 +0000
committerRui Ueyama <ruiu@google.com>2016-06-22 00:57:09 +0000
commitd2ada2ea5dee378aa21a7c9b90c4c3dc5704d0ac (patch)
treee4c8d8e94cb7629e13a08ba51fb4dcb837dbe7fc /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent5f15481f87059cd7382aa14609fc8a5c839deda0 (diff)
downloadllvm-d2ada2ea5dee378aa21a7c9b90c4c3dc5704d0ac.zip
llvm-d2ada2ea5dee378aa21a7c9b90c4c3dc5704d0ac.tar.gz
llvm-d2ada2ea5dee378aa21a7c9b90c4c3dc5704d0ac.tar.bz2
Do not scan relocations twice for MIPS.
Previously, relocations for MIPS were scanned twice; once in regular scanRelocs() and the other is in scanRelocsForThunks. In the former function, we computed types of relocations and skipped R_THUNK relocations. In the latter function, we computed the same value again and skipped all but R_THUNK relocations. It was wasteful. This patch fixes that. Now R_THUNK relocations are handled in the regular manner. llvm-svn: 273346
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions