summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/SetTheory.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-07-06 06:23:01 +0000
committerCraig Topper <craig.topper@gmail.com>2015-07-06 06:23:01 +0000
commitd26d2d9a5024f18b5a08d9a8f121c0608845ff50 (patch)
treeb78853453a2b25889f8b9556905d1a1b34a66215 /llvm/lib/TableGen/SetTheory.cpp
parent7d5d33ea33ab673150852f0f7ece99bee7feae3d (diff)
downloadbcm5719-llvm-d26d2d9a5024f18b5a08d9a8f121c0608845ff50.tar.gz
bcm5719-llvm-d26d2d9a5024f18b5a08d9a8f121c0608845ff50.zip
[TableGen] Change a couple methods to return an ArrayRef instead of a const std::vector reference. NFC
llvm-svn: 241430
Diffstat (limited to 'llvm/lib/TableGen/SetTheory.cpp')
-rw-r--r--llvm/lib/TableGen/SetTheory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/TableGen/SetTheory.cpp b/llvm/lib/TableGen/SetTheory.cpp
index 92f5b2dd717..07c538159dc 100644
--- a/llvm/lib/TableGen/SetTheory.cpp
+++ b/llvm/lib/TableGen/SetTheory.cpp
@@ -302,7 +302,7 @@ const RecVec *SetTheory::expand(Record *Set) {
return &I->second;
// This is the first time we see Set. Find a suitable expander.
- const std::vector<Record*> &SC = Set->getSuperClasses();
+ ArrayRef<Record *> SC = Set->getSuperClasses();
for (unsigned i = 0, e = SC.size(); i != e; ++i) {
// Skip unnamed superclasses.
if (!dyn_cast<StringInit>(SC[i]->getNameInit()))
OpenPOWER on IntegriCloud