aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2023-11-15 17:51:25 -0800
committerGitHub <noreply@github.com>2023-11-15 17:51:25 -0800
commit212a60ec37322f853e91e171b305479b1abff2f2 (patch)
tree95010c665b5e0bcb290de5c58448c6da48f7154f /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent71a7108ee91a522251ff37638e26158570c1e2a5 (diff)
downloadllvm-212a60ec37322f853e91e171b305479b1abff2f2.zip
llvm-212a60ec37322f853e91e171b305479b1abff2f2.tar.gz
llvm-212a60ec37322f853e91e171b305479b1abff2f2.tar.bz2
[lldb][test] Remove `self` references from decorators (#72416)
This is partial step toward removing the vendored `unittest2` dep in favor of the `unittest` library in standard python. One of the large differences is when xfail decorators are evaluated. With the `unittest2` vendored dep, this can happen at the moment of calling the test case, and with LLDB's decorator wrappers, we are passed the test class in the decorator arg. With the `unittest` framework, this is determined much earlier; we cannot decide when the test is about to start that we need to xfail. Fortunately, almost none of these checks require any state that can't be determined statically. For this patch, I moved the impl for all the checks to `lldbplatformutil` and pointed the decorators to that, removing as many `self` (i.e. test class object) references as possible. I left wrappers within `TestBase` that forward to `lldbplatformutil` for convenience, but we should probably remove those later. The remaining check that can't be moved statically is the check for the debug info type (e.g. to xfail only for dwarf). Fixing that requires a different approach, so I will postpone that to the next patch.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions