diff options
author | Chris Lattner <sabre@nondot.org> | 2012-05-28 01:47:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-05-28 01:47:44 +0000 |
commit | d509d0b532ec2358b3f341d4a4cd1411cb8b5db2 (patch) | |
tree | ccb049af92ff02e28b5416be519b91d2881e436a /utils | |
parent | 2a9d3b79db1f192dba43b8b16755a7822b05f798 (diff) |
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')
-rw-r--r-- | utils/TableGen/IntrinsicEmitter.cpp | 3 |
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"; } |