summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2019-11-18 07:05:05 -0800
committerTeresa Johnson <tejohnson@google.com>2019-11-18 11:59:36 -0800
commit3be6dbca3b88e82009e1990957c15b94455c1714 (patch)
tree74c4c9c363ca25ce8a2337b96109366da6d24bf3 /lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
parentff75bf6ac93a9ef5a7d41f7645e02fde3e968ce1 (diff)
downloadbcm5719-llvm-3be6dbca3b88e82009e1990957c15b94455c1714.tar.gz
bcm5719-llvm-3be6dbca3b88e82009e1990957c15b94455c1714.zip
[ThinLTO] Promotion handling cleanup (NFC)
Summary: Clean up the code that does GV promotion in the ThinLTO backends. Specifically, we don't need to check whether we are importing since that is already checked and handled correctly in shouldPromoteLocalToGlobal. Simply call shouldPromoteLocalToGlobal, and if it returns true we are guaranteed that we are promoting, whether or not we are importing (or in the exporting module). This also makes the handling in getName() consistent with that in getLinkage(), which checks the DoPromote parameter regardless of whether we are importing or exporting. Reviewers: steven_wu, pcc, evgeny777 Subscribers: mehdi_amini, inglorion, hiraditya, dexonsmith, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70327
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud