diff options
author | Michael Kruse <llvm-project@meinersbur.de> | 2021-06-06 07:28:08 -0500 |
---|---|---|
committer | Michael Kruse <llvm-project@meinersbur.de> | 2021-06-06 09:17:42 -0500 |
commit | d466ca087aae958d1c0a965c561be07d2cb3e7e2 (patch) | |
tree | eb984c83e5486f981f8d6e08e4cfaf5186a6648f /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | 506875c87926b8009664ffc15a1f8233e8460cde (diff) | |
download | llvm-d466ca087aae958d1c0a965c561be07d2cb3e7e2.zip llvm-d466ca087aae958d1c0a965c561be07d2cb3e7e2.tar.gz llvm-d466ca087aae958d1c0a965c561be07d2cb3e7e2.tar.bz2 |
[Clang][OpenMP] Add static version of getSingleClause<ClauseT>. NFC.
The current method getSingleClause requires an instance of OMPExecutableDirective to be called. Introduce a static version taking a list of clauses as argument instead that can be used during parsing/Sema before any OMPExecutableDirective has been created.
This is the same approach as taken for getClausesOfKind for getting more more than a single clause of a type which also has a method and static version. NFC patch extracted out of D99459 by request.
Reviewed By: ABataev
Differential Revision: https://reviews.llvm.org/D103665
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
0 files changed, 0 insertions, 0 deletions