aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objcopy/ELF/Object.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2021-06-12 21:55:37 +0000
committerMehdi Amini <joker.eph@gmail.com>2021-06-12 22:55:31 +0000
commit152c9871e6ac7ba2a14dcc64e812b79193421846 (patch)
tree1040221251b5b574a66234ff6c6eed79fac8ec16 /llvm/tools/llvm-objcopy/ELF/Object.cpp
parent2db64e199aa3b48d3495da3620c8cdb045da94f3 (diff)
downloadllvm-152c9871e6ac7ba2a14dcc64e812b79193421846.zip
llvm-152c9871e6ac7ba2a14dcc64e812b79193421846.tar.gz
llvm-152c9871e6ac7ba2a14dcc64e812b79193421846.tar.bz2
Simplify getArgAttrDict/getResultAttrDict by removing unnecessary checks
There is a slight change in behavior: if the arg dictionnary is empty then we return this empty dictionnary instead of a null attribute. This is more consistent with accessing it through: ArrayAttr args_attr = func_op.getAllArgAttrs(); args_attr[num].cast<DictionnaryAttr>() ... Differential Revision: https://reviews.llvm.org/D104189
Diffstat (limited to 'llvm/tools/llvm-objcopy/ELF/Object.cpp')
0 files changed, 0 insertions, 0 deletions