summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/IntrinsicEmitter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-08-27 05:25:25 +0000
committerCraig Topper <craig.topper@gmail.com>2014-08-27 05:25:25 +0000
commite1d1294853f88f663639f0d5582eec5b0ad8f9ff (patch)
tree5bd7b736dc5a2637df5b1cf458986af8e40915ff /llvm/utils/TableGen/IntrinsicEmitter.cpp
parent3af97225291fe0c74ece7e15d6b45773a2a60007 (diff)
downloadbcm5719-llvm-e1d1294853f88f663639f0d5582eec5b0ad8f9ff.tar.gz
bcm5719-llvm-e1d1294853f88f663639f0d5582eec5b0ad8f9ff.zip
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created.
llvm-svn: 216525
Diffstat (limited to 'llvm/utils/TableGen/IntrinsicEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/IntrinsicEmitter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp
index 34358c41a74..f305baa445c 100644
--- a/llvm/utils/TableGen/IntrinsicEmitter.cpp
+++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp
@@ -680,8 +680,7 @@ EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS) {
OS << " }\n";
OS << " }\n";
- OS << " return AttributeSet::get(C, ArrayRef<AttributeSet>(AS, "
- "NumAttrs));\n";
+ OS << " return AttributeSet::get(C, makeArrayRef(AS, NumAttrs));\n";
OS << "}\n";
OS << "#endif // GET_INTRINSIC_ATTRIBUTES\n\n";
}
OpenPOWER on IntegriCloud