summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenMapTable.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-02-01 01:33:42 +0000
committerCraig Topper <craig.topper@gmail.com>2016-02-01 01:33:42 +0000
commit28851b62cc64c9c48fcb22c182a66a9489900bd7 (patch)
tree3e5ee61df42217515416c1d77df8d61b9ae7e0e9 /llvm/utils/TableGen/CodeGenMapTable.cpp
parent31be598153924268f1f2c66055089e5eb3aec95e (diff)
downloadbcm5719-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.cpp2
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();
OpenPOWER on IntegriCloud