diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-15 22:04:42 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-15 22:04:42 +0000 |
commit | 94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5 (patch) | |
tree | a11274bb86a14e22b860582986b742ff4e07e948 /utils/TableGen | |
parent | 766f25306af343fb2784350cb4d8cd9ca180f0d3 (diff) | |
download | external_llvm-94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5.zip external_llvm-94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5.tar.gz external_llvm-94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5.tar.bz2 |
Replace some unnecessary vector copies with references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/RegisterInfoEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index ee417bc..cc08df9 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -121,7 +121,7 @@ void RegisterInfoEmitter::runEnums(raw_ostream &OS, OS << "}\n"; } - const std::vector<Record*> RegAltNameIndices = Target.getRegAltNameIndices(); + const std::vector<Record*> &RegAltNameIndices = Target.getRegAltNameIndices(); // If the only definition is the default NoRegAltName, we don't need to // emit anything. if (RegAltNameIndices.size() > 1) { |