aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2020-08-28 13:02:42 -0700
committerCraig Topper <craig.topper@intel.com>2020-08-28 13:23:45 -0700
commitaab90384a3a7a475bc1a969405d112c886ce8077 (patch)
tree5719e08b035d929aa8b8ba1ebe6752d91c2d2e23 /lldb/packages/Python/lldbsuite/test/dotest.py
parent0becc27ebfec02c3d667785e55b366bc1a5336a7 (diff)
downloadllvm-aab90384a3a7a475bc1a969405d112c886ce8077.zip
llvm-aab90384a3a7a475bc1a969405d112c886ce8077.tar.gz
llvm-aab90384a3a7a475bc1a969405d112c886ce8077.tar.bz2
[Attributes] Add a method to check if an Attribute has AttrKind None. Use instead of hasAttribute(Attribute::None)
There's a special case in hasAttribute for None when pImpl is null. If pImpl is not null we dispatch to pImpl->hasAttribute which will always return false for Attribute::None. So if we just want to check for None its sufficient to just check that pImpl is null. Which can even be done inline. This patch adds a helper for that case which I hope will speed up our getSubtargetImpl implementations. Differential Revision: https://reviews.llvm.org/D86744
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
0 files changed, 0 insertions, 0 deletions