aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-07-13 22:14:55 +0200
committerNikita Popov <nikita.ppv@gmail.com>2021-07-15 17:51:11 +0200
commitf59209a86eaf5ec2edea74b9b6e4932148efb3e0 (patch)
tree350216a06af14e4d70399dcfb5ce255f89fb158d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parente33446ea58b8357dd8b79eb39140a1de2baff1ae (diff)
downloadllvm-f59209a86eaf5ec2edea74b9b6e4932148efb3e0.zip
llvm-f59209a86eaf5ec2edea74b9b6e4932148efb3e0.tar.gz
llvm-f59209a86eaf5ec2edea74b9b6e4932148efb3e0.tar.bz2
[AsmParser] Unify parsing of attributes
Continuing on from D105780, this should be the last major bit of attribute cleanup. Currently, LLParser implements attribute parsing for functions, parameters and returns separately, enumerating all supported (and unsupported) attributes each time. This patch extracts the common parsing logic, and performs a check afterwards whether the attribute is valid in the given position. Parameters and returns are handled together, while function attributes need slightly different logic to support attribute groups. Differential Revision: https://reviews.llvm.org/D105938
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions