diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-01-17 20:38:14 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-01-17 20:38:14 +0000 |
commit | f926532c7161e184252e4a5be08e77b098433ac1 (patch) | |
tree | 952fee916123e8a1d0b659f4c979d378a43e1694 /llvm/utils/TableGen/CodeGenTarget.h | |
parent | a15226ea51e88c865c4f2eaed31093f38070c23b (diff) | |
download | llvm-f926532c7161e184252e4a5be08e77b098433ac1.zip llvm-f926532c7161e184252e4a5be08e77b098433ac1.tar.gz llvm-f926532c7161e184252e4a5be08e77b098433ac1.tar.bz2 |
[TableGen] Return ArrayRef instead of a std::vector reference from getInstructionsByEnumValue(). NFC
llvm-svn: 258018
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.h b/llvm/utils/TableGen/CodeGenTarget.h index 604fe73..da420c4 100644 --- a/llvm/utils/TableGen/CodeGenTarget.h +++ b/llvm/utils/TableGen/CodeGenTarget.h @@ -161,13 +161,13 @@ public: /// getInstructionsByEnumValue - Return all of the instructions defined by the /// target, ordered by their enum value. - const std::vector<const CodeGenInstruction*> & + ArrayRef<const CodeGenInstruction *> getInstructionsByEnumValue() const { if (InstrsByEnum.empty()) ComputeInstrsByEnum(); return InstrsByEnum; } - typedef std::vector<const CodeGenInstruction*>::const_iterator inst_iterator; + typedef ArrayRef<const CodeGenInstruction *>::const_iterator inst_iterator; inst_iterator inst_begin() const{return getInstructionsByEnumValue().begin();} inst_iterator inst_end() const { return getInstructionsByEnumValue().end(); } iterator_range<inst_iterator> instructions() const { |