Skip to content

Commit

Permalink
[TableGen] Change a couple methods to return an ArrayRef instead of a…
Browse files Browse the repository at this point in the history
… const std::vector reference. NFC

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241431 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
topperc committed Jul 6, 2015
1 parent 0edd99f commit 9a5bfce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/TableGen/ClangAttrEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ createArgument(const Record &Arg, StringRef Attr,

if (!Ptr) {
// Search in reverse order so that the most-derived type is handled first.
std::vector<Record*> Bases = Search->getSuperClasses();
ArrayRef<Record*> Bases = Search->getSuperClasses();
for (const auto *Base : llvm::make_range(Bases.rbegin(), Bases.rend())) {
if ((Ptr = createArgument(Arg, Attr, Base)))
break;
Expand Down Expand Up @@ -1456,7 +1456,7 @@ void EmitClangAttrClass(RecordKeeper &Records, raw_ostream &OS) {
if (!R.getValueAsBit("ASTNode"))
continue;

const std::vector<Record *> Supers = R.getSuperClasses();
ArrayRef<Record *> Supers = R.getSuperClasses();
assert(!Supers.empty() && "Forgot to specify a superclass for the attr");
std::string SuperName;
for (const auto *Super : llvm::make_range(Supers.rbegin(), Supers.rend())) {
Expand Down

0 comments on commit 9a5bfce

Please sign in to comment.