Update CPPBackend to new API for AttrListPtr::get.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nicolas Geoffray 2012-05-29 15:07:18 +00:00
parent 0aa32d5d0f
commit e23642916b

View File

@ -496,7 +496,7 @@ void CppWriter::printAttributes(const AttrListPtr &PAL,
Out << "Attrs.push_back(PAWI);"; Out << "Attrs.push_back(PAWI);";
nl(Out); nl(Out);
} }
Out << name << "_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());"; Out << name << "_PAL = AttrListPtr::get(Attrs);";
nl(Out); nl(Out);
out(); nl(Out); out(); nl(Out);
Out << '}'; nl(Out); Out << '}'; nl(Out);