aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2019-11-18 12:03:58 -0800
committerTeresa Johnson <tejohnson@google.com>2019-11-18 12:55:53 -0800
commitcc1b0bc24d2703087d80e4f4dc0560879733299a (patch)
treea6404d66385bedb815df52cfe63018bb17ffda6a /llvm/lib/Object/MachOObjectFile.cpp
parentee31adb7fa42f5b601d9612f23755b4604f83cac (diff)
downloadllvm-cc1b0bc24d2703087d80e4f4dc0560879733299a.zip
llvm-cc1b0bc24d2703087d80e4f4dc0560879733299a.tar.gz
llvm-cc1b0bc24d2703087d80e4f4dc0560879733299a.tar.bz2
[ThinLTO] Avoid extra index lookup during promotion
Summary: Pass down the already accessed ValueInfo to shouldPromoteLocalToGlobal, to avoid an unnecessary extra index lookup. Add some assertion checking to confirm we have a non-empty VI when expected. Also some misc cleanup, merging the two versions of doImportAsDefinition, since one was only called by the other, and unnecessarily passed in a member variable. Reviewers: steven_wu, pcc, evgeny777 Reviewed By: evgeny777 Subscribers: mehdi_amini, inglorion, hiraditya, dexonsmith, arphaman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70337
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions