diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-02-01 01:33:42 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-02-01 01:33:42 +0000 |
commit | 28851b62cc64c9c48fcb22c182a66a9489900bd7 (patch) | |
tree | 3e5ee61df42217515416c1d77df8d61b9ae7e0e9 /llvm/utils/TableGen/CodeGenMapTable.cpp | |
parent | 31be598153924268f1f2c66055089e5eb3aec95e (diff) | |
download | bcm5719-llvm-28851b62cc64c9c48fcb22c182a66a9489900bd7.tar.gz bcm5719-llvm-28851b62cc64c9c48fcb22c182a66a9489900bd7.zip |
[TableGen] Store result of getInstructionsByEnumValue in an ArrayRef instead of accidentally copying to a vector.
llvm-svn: 259336
Diffstat (limited to 'llvm/utils/TableGen/CodeGenMapTable.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenMapTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenMapTable.cpp b/llvm/utils/TableGen/CodeGenMapTable.cpp index f66dd082709..76d0ae29faa 100644 --- a/llvm/utils/TableGen/CodeGenMapTable.cpp +++ b/llvm/utils/TableGen/CodeGenMapTable.cpp @@ -355,7 +355,7 @@ Record *MapTableEmitter::getInstrForColumn(Record *KeyInstr, unsigned MapTableEmitter::emitBinSearchTable(raw_ostream &OS) { - const std::vector<const CodeGenInstruction*> &NumberedInstructions = + ArrayRef<const CodeGenInstruction*> NumberedInstructions = Target.getInstructionsByEnumValue(); std::string TargetName = Target.getName(); const std::vector<ListInit*> &ValueCols = InstrMapDesc.getValueCols(); |