mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
add helper
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d97bf1429
commit
66250e97ef
@ -47,6 +47,13 @@ enum Attributes {
|
||||
struct ParamAttrsWithIndex {
|
||||
uint16_t attrs; ///< The attributes that are set, |'d together
|
||||
uint16_t index; ///< Index of the parameter for which the attributes apply
|
||||
|
||||
static ParamAttrsWithIndex get(uint16_t idx, uint16_t attrs) {
|
||||
ParamAttrsWithIndex P;
|
||||
P.index = idx;
|
||||
P.attrs = attrs;
|
||||
return P;
|
||||
}
|
||||
};
|
||||
|
||||
/// @brief A vector of attribute/index pairs.
|
||||
|
Loading…
Reference in New Issue
Block a user