diff options
author | Kevin McAfee <kmcafee@nvidia.com> | 2024-07-11 09:10:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 09:10:59 -0700 |
commit | 88cbc8ce58a0e6724f3054c7d65a494999d85483 (patch) | |
tree | 44b4af22e7ce031e20de7beadcbc20a9cb0f9683 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | |
parent | ae18b9410297963a379e03b94eae7433ff69a62b (diff) | |
download | llvm-88cbc8ce58a0e6724f3054c7d65a494999d85483.zip llvm-88cbc8ce58a0e6724f3054c7d65a494999d85483.tar.gz llvm-88cbc8ce58a0e6724f3054c7d65a494999d85483.tar.bz2 |
[NVPTX][NFC] Use same logic to get alignment in param declarations and function prototypes (#98220)
Unifies the logic used to choose function prototype argument alignment
and param alignment declared in the caller. The call in `getPrototype`
to `getAlign`/`getFunctionParamOptimizedAlign` is replaced with
`getArgumentAlignment`, which is what is currently used to select the
alignment for the param declarations. This avoids code duplication of
`getAlign().value_or(getFunctionParamOptimizedAlign())` and ensures that
param alignments are the same in declarations and prototypes.
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
0 files changed, 0 insertions, 0 deletions