summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/DisassemblerEmitter.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/DisassemblerEmitter.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/DisassemblerEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/DisassemblerEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DisassemblerEmitter.cpp b/llvm/utils/TableGen/DisassemblerEmitter.cpp
index e8595271bcc..b6a2b1c7f5d 100644
--- a/llvm/utils/TableGen/DisassemblerEmitter.cpp
+++ b/llvm/utils/TableGen/DisassemblerEmitter.cpp
@@ -111,7 +111,7 @@ void EmitDisassembler(RecordKeeper &Records, raw_ostream &OS) {
if (Target.getName() == "X86") {
DisassemblerTables Tables;
- const std::vector<const CodeGenInstruction*> &numberedInstructions =
+ ArrayRef<const CodeGenInstruction*> numberedInstructions =
Target.getInstructionsByEnumValue();
for (unsigned i = 0, e = numberedInstructions.size(); i != e; ++i)
OpenPOWER on IntegriCloud