summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2012-07-09 10:04:07 +0000
committerAlexander Kornienko <alexfh@google.com>2012-07-09 10:04:07 +0000
commit20f6fc6220d7b6ddef7103bac1c31a9a18e559b2 (patch)
tree664ae3458ef8e4454b6c87c6bbf73720a072d2cb /clang/lib/Serialization/ASTWriter.cpp
parent75b9cfd1f091ab0597127567885bda154394f422 (diff)
downloadbcm5719-llvm-20f6fc6220d7b6ddef7103bac1c31a9a18e559b2.tar.gz
bcm5719-llvm-20f6fc6220d7b6ddef7103bac1c31a9a18e559b2.zip
Inline storage of attributes in AttributedStmt.
llvm-svn: 159925
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 566c8b77f5e..6a6863f17bf 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -3086,10 +3086,12 @@ void ASTWriter::WriteMergedDecls() {
//===----------------------------------------------------------------------===//
/// \brief Write a record containing the given attributes.
-void ASTWriter::WriteAttributes(const AttrVec &Attrs, RecordDataImpl &Record) {
+void ASTWriter::WriteAttributes(ArrayRef<const Attr*> Attrs,
+ RecordDataImpl &Record) {
Record.push_back(Attrs.size());
- for (AttrVec::const_iterator i = Attrs.begin(), e = Attrs.end(); i != e; ++i){
- const Attr * A = *i;
+ for (ArrayRef<const Attr *>::iterator i = Attrs.begin(),
+ e = Attrs.end(); i != e; ++i){
+ const Attr *A = *i;
Record.push_back(A->getKind()); // FIXME: stable encoding, target attrs
AddSourceRange(A->getRange(), Record);
OpenPOWER on IntegriCloud