mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
s/ParamAttrsWithIndex/FnAttributeWithIndex/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -322,7 +322,7 @@ bool BitcodeReader::ParseParamAttrBlock() {
|
||||
|
||||
SmallVector<uint64_t, 64> Record;
|
||||
|
||||
SmallVector<ParamAttrsWithIndex, 8> Attrs;
|
||||
SmallVector<FnAttributeWithIndex, 8> Attrs;
|
||||
|
||||
// Read all the records.
|
||||
while (1) {
|
||||
@ -357,7 +357,7 @@ bool BitcodeReader::ParseParamAttrBlock() {
|
||||
|
||||
for (unsigned i = 0, e = Record.size(); i != e; i += 2) {
|
||||
if (Record[i+1] != ParamAttr::None)
|
||||
Attrs.push_back(ParamAttrsWithIndex::get(Record[i], Record[i+1]));
|
||||
Attrs.push_back(FnAttributeWithIndex::get(Record[i], Record[i+1]));
|
||||
}
|
||||
|
||||
ParamAttrs.push_back(PAListPtr::get(Attrs.begin(), Attrs.end()));
|
||||
|
@ -119,7 +119,7 @@ static void WriteParamAttrTable(const ValueEnumerator &VE,
|
||||
for (unsigned i = 0, e = Attrs.size(); i != e; ++i) {
|
||||
const PAListPtr &A = Attrs[i];
|
||||
for (unsigned i = 0, e = A.getNumSlots(); i != e; ++i) {
|
||||
const ParamAttrsWithIndex &PAWI = A.getSlot(i);
|
||||
const FnAttributeWithIndex &PAWI = A.getSlot(i);
|
||||
Record.push_back(PAWI.Index);
|
||||
Record.push_back(PAWI.Attrs);
|
||||
}
|
||||
|
Reference in New Issue
Block a user