[PATCH] D59664: [llvm] Non-functional change: declared a couple of local variables as const.
Ali Tamur via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 13:32:25 PDT 2019
tamur created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Repository:
rL LLVM
https://reviews.llvm.org/D59664
Files:
llvm/include/llvm/MC/MCContext.h
llvm/lib/MC/MCAsmStreamer.cpp
Index: llvm/lib/MC/MCAsmStreamer.cpp
===================================================================
--- llvm/lib/MC/MCAsmStreamer.cpp
+++ llvm/lib/MC/MCAsmStreamer.cpp
@@ -1911,7 +1911,7 @@
// Emit the label for the line table, if requested - since the rest of the
// line table will be defined by .loc/.file directives, and not emitted
// directly, the label is the only work required here.
- auto &Tables = getContext().getMCDwarfLineTables();
+ const auto &Tables = getContext().getMCDwarfLineTables();
if (!Tables.empty()) {
assert(Tables.size() == 1 && "asm output only supports one line table");
if (auto *Label = Tables.begin()->second.getLabel()) {
Index: llvm/include/llvm/MC/MCContext.h
===================================================================
--- llvm/include/llvm/MC/MCContext.h
+++ llvm/include/llvm/MC/MCContext.h
@@ -525,7 +525,7 @@
}
const MCDwarfLineTable &getMCDwarfLineTable(unsigned CUID) const {
- auto I = MCDwarfLineTablesCUMap.find(CUID);
+ const auto &I = MCDwarfLineTablesCUMap.find(CUID);
assert(I != MCDwarfLineTablesCUMap.end());
return I->second;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59664.191769.patch
Type: text/x-patch
Size: 1160 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190321/baadb21d/attachment.bin>
More information about the llvm-commits
mailing list