diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-01-04 03:15:08 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-01-04 03:15:08 +0000 |
commit | cfd817332737952f181cd6b41c8cda7a9cb02ab2 (patch) | |
tree | d9becf52a3d5912c4066413d9c6ef1b0b7037a28 /llvm/lib/TableGen/TGParser.h | |
parent | 1e23ed9eaa7c91de40e67ae31b9f8d43897ee5cd (diff) | |
download | bcm5719-llvm-cfd817332737952f181cd6b41c8cda7a9cb02ab2.tar.gz bcm5719-llvm-cfd817332737952f181cd6b41c8cda7a9cb02ab2.zip |
[TableGen] Change TGParser::SetValue to take an ArrayRef instead of std::vector reference. Use None in many places where a default constructed vector was being passed. NFC
llvm-svn: 256726
Diffstat (limited to 'llvm/lib/TableGen/TGParser.h')
-rw-r--r-- | llvm/lib/TableGen/TGParser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/TableGen/TGParser.h b/llvm/lib/TableGen/TGParser.h index b4407041908..739d9a9c5f3 100644 --- a/llvm/lib/TableGen/TGParser.h +++ b/llvm/lib/TableGen/TGParser.h @@ -105,10 +105,10 @@ public: private: // Semantic analysis methods. bool AddValue(Record *TheRec, SMLoc Loc, const RecordVal &RV); bool SetValue(Record *TheRec, SMLoc Loc, Init *ValName, - const std::vector<unsigned> &BitList, Init *V, + ArrayRef<unsigned> BitList, Init *V, bool AllowSelfAssignment = false); bool SetValue(Record *TheRec, SMLoc Loc, const std::string &ValName, - const std::vector<unsigned> &BitList, Init *V, + ArrayRef<unsigned> BitList, Init *V, bool AllowSelfAssignment = false) { return SetValue(TheRec, Loc, StringInit::get(ValName), BitList, V, AllowSelfAssignment); |