summaryrefslogtreecommitdiff
path: root/utils/TableGen/IntrinsicEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-05-28 01:47:44 +0000
committerChris Lattner <sabre@nondot.org>2012-05-28 01:47:44 +0000
commitd509d0b532ec2358b3f341d4a4cd1411cb8b5db2 (patch)
treeccb049af92ff02e28b5416be519b91d2881e436a /utils/TableGen/IntrinsicEmitter.cpp
parent2a9d3b79db1f192dba43b8b16755a7822b05f798 (diff)
downloadllvm-d509d0b532ec2358b3f341d4a4cd1411cb8b5db2.tar.gz
llvm-d509d0b532ec2358b3f341d4a4cd1411cb8b5db2.tar.bz2
llvm-d509d0b532ec2358b3f341d4a4cd1411cb8b5db2.tar.xz
switch AttrListPtr::get to take an ArrayRef, simplifying a lot of clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/IntrinsicEmitter.cpp')
-rw-r--r--utils/TableGen/IntrinsicEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp
index 9e2bb9d87f..748573e367 100644
--- a/utils/TableGen/IntrinsicEmitter.cpp
+++ b/utils/TableGen/IntrinsicEmitter.cpp
@@ -590,7 +590,8 @@ EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS) {
OS << " }\n";
OS << " }\n";
- OS << " return AttrListPtr::get(AWI, NumAttrs);\n";
+ OS << " return AttrListPtr::get(ArrayRef<AttributeWithIndex>(AWI, "
+ "NumAttrs));\n";
OS << "}\n";
OS << "#endif // GET_INTRINSIC_ATTRIBUTES\n\n";
}