summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>2012-05-29 15:07:18 +0000
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>2012-05-29 15:07:18 +0000
commit312b28ce9d9af2c2951d587c70e39755afdf8c44 (patch)
treeed5e46f32e814b9a6b3f448d9c96d1703431f1cf /llvm/lib/Target/CppBackend
parent3de2a75997adde9c6444e8314e1f3d2a5c7c8b6a (diff)
downloadbcm5719-llvm-312b28ce9d9af2c2951d587c70e39755afdf8c44.tar.gz
bcm5719-llvm-312b28ce9d9af2c2951d587c70e39755afdf8c44.zip
Update CPPBackend to new API for AttrListPtr::get.
llvm-svn: 157624
Diffstat (limited to 'llvm/lib/Target/CppBackend')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index 2ac9fe71fb4..cd2ebcb5087 100644
--- a/llvm/lib/Target/CppBackend/CPPBackend.cpp
+++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp
@@ -496,7 +496,7 @@ void CppWriter::printAttributes(const AttrListPtr &PAL,
Out << "Attrs.push_back(PAWI);";
nl(Out);
}
- Out << name << "_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());";
+ Out << name << "_PAL = AttrListPtr::get(Attrs);";
nl(Out);
out(); nl(Out);
Out << '}'; nl(Out);
OpenPOWER on IntegriCloud