aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/CodeGenTarget.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-03-17 17:26:09 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-03-17 17:26:09 +0000
commit26369a930c523b75fe8f4ba18456ff86f68d5612 (patch)
tree1256c9466ca023816a7f25ff0978047c9c4b39ef /utils/TableGen/CodeGenTarget.cpp
parent53856be683113838cc112331adca3717d4a520cc (diff)
downloadexternal_llvm-26369a930c523b75fe8f4ba18456ff86f68d5612.zip
external_llvm-26369a930c523b75fe8f4ba18456ff86f68d5612.tar.gz
external_llvm-26369a930c523b75fe8f4ba18456ff86f68d5612.tar.bz2
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/CodeGenTarget.cpp')
-rw-r--r--utils/TableGen/CodeGenTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index dd3f6e2..8b292b9 100644
--- a/utils/TableGen/CodeGenTarget.cpp
+++ b/utils/TableGen/CodeGenTarget.cpp
@@ -229,7 +229,7 @@ getRegisterVTs(Record *R) const {
for (unsigned i = 0, e = RCs.size(); i != e; ++i) {
const CodeGenRegisterClass &RC = *RCs[i];
if (RC.contains(Reg)) {
- const std::vector<MVT::SimpleValueType> &InVTs = RC.getValueTypes();
+ ArrayRef<MVT::SimpleValueType> InVTs = RC.getValueTypes();
Result.insert(Result.end(), InVTs.begin(), InVTs.end());
}
}