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 | 3cb6f83ebbde1d6d33651dcab64d5207900c4114 (patch) | |
tree | c841073bfb8b4d40625e238000449d3e757e2875 /llvm/utils/TableGen/IntrinsicEmitter.cpp | |
parent | 5be972d8a2095c92e7de4e8f61b02a20439b2461 (diff) | |
download | bcm5719-llvm-3cb6f83ebbde1d6d33651dcab64d5207900c4114.tar.gz bcm5719-llvm-3cb6f83ebbde1d6d33651dcab64d5207900c4114.zip |
switch AttrListPtr::get to take an ArrayRef, simplifying a lot of clients.
llvm-svn: 157556
Diffstat (limited to 'llvm/utils/TableGen/IntrinsicEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/IntrinsicEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp index 9e2bb9d87f2..748573e367d 100644 --- a/llvm/utils/TableGen/IntrinsicEmitter.cpp +++ b/llvm/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"; } |