diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-03-17 17:26:09 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-03-17 17:26:09 +0000 |
commit | 26369a930c523b75fe8f4ba18456ff86f68d5612 (patch) | |
tree | 1256c9466ca023816a7f25ff0978047c9c4b39ef /utils/TableGen/CodeGenRegisters.h | |
parent | 53856be683113838cc112331adca3717d4a520cc (diff) | |
download | llvm-26369a930c523b75fe8f4ba18456ff86f68d5612.tar.gz llvm-26369a930c523b75fe8f4ba18456ff86f68d5612.tar.bz2 llvm-26369a930c523b75fe8f4ba18456ff86f68d5612.tar.xz |
Use ArrayRef<MVT::SimpleValueType> when possible.
Not passing vector references around makes it possible to use
SmallVector in most places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenRegisters.h')
-rw-r--r-- | utils/TableGen/CodeGenRegisters.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenRegisters.h b/utils/TableGen/CodeGenRegisters.h index a1921a412a..4f2cc28d49 100644 --- a/utils/TableGen/CodeGenRegisters.h +++ b/utils/TableGen/CodeGenRegisters.h @@ -261,7 +261,7 @@ namespace llvm { public: unsigned EnumValue; std::string Namespace; - std::vector<MVT::SimpleValueType> VTs; + SmallVector<MVT::SimpleValueType, 4> VTs; unsigned SpillSize; unsigned SpillAlignment; int CopyCost; @@ -274,7 +274,7 @@ namespace llvm { const std::string &getName() const { return Name; } std::string getQualifiedName() const; - const std::vector<MVT::SimpleValueType> &getValueTypes() const {return VTs;} + ArrayRef<MVT::SimpleValueType> getValueTypes() const {return VTs;} unsigned getNumValueTypes() const { return VTs.size(); } MVT::SimpleValueType getValueTypeNum(unsigned VTNum) const { |