[PATCH] D138092: [llvm-debuginfo-analyzer] Return by reference instead of value - Warning analysis data.
Carlos Alberto Enciso via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 22:32:48 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd896ea75c591: [llvm-debuginfo-analyzer] Return by reference instead of value. (authored by CarlosAlbertoEnciso).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138092/new/
https://reviews.llvm.org/D138092
Files:
llvm/include/llvm/DebugInfo/LogicalView/Core/LVScope.h
Index: llvm/include/llvm/DebugInfo/LogicalView/Core/LVScope.h
===================================================================
--- llvm/include/llvm/DebugInfo/LogicalView/Core/LVScope.h
+++ llvm/include/llvm/DebugInfo/LogicalView/Core/LVScope.h
@@ -555,16 +555,16 @@
// Record line zero.
void addLineZero(LVLine *Line);
- const LVTagOffsetsMap getDebugTags() const { return DebugTags; }
- const LVOffsetElementMap getWarningOffsets() const { return WarningOffsets; }
- const LVOffsetLocationsMap getInvalidLocations() const {
+ const LVTagOffsetsMap &getDebugTags() const { return DebugTags; }
+ const LVOffsetElementMap &getWarningOffsets() const { return WarningOffsets; }
+ const LVOffsetLocationsMap &getInvalidLocations() const {
return InvalidLocations;
}
- const LVOffsetSymbolMap getInvalidCoverages() const {
+ const LVOffsetSymbolMap &getInvalidCoverages() const {
return InvalidCoverages;
}
- const LVOffsetLocationsMap getInvalidRanges() const { return InvalidRanges; }
- const LVOffsetLinesMap getLinesZero() const { return LinesZero; }
+ const LVOffsetLocationsMap &getInvalidRanges() const { return InvalidRanges; }
+ const LVOffsetLinesMap &getLinesZero() const { return LinesZero; }
// Process ranges, locations and calculate coverage.
void processRangeLocationCoverage(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138092.476012.patch
Type: text/x-patch
Size: 1335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221117/009e2e2b/attachment.bin>
More information about the llvm-commits
mailing list