Refactor code only for D98289.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks good as long as we fix to DWARFUnit::GetRnglist() to not return a full copy of the "llvm::Optional<llvm::DWARFDebugRnglistTable>" each time it is called.
| lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp | ||
|---|---|---|
| 503–505 | Return "const llvm::Optional<llvm::DWARFDebugRnglistTable> &" to avoid making a copy. | |
| lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp | ||
|---|---|---|
| 503–505 | That was horrible, thanks for catching it. | |
Return "const llvm::Optional<llvm::DWARFDebugRnglistTable> &" to avoid making a copy.