diff options
author | Kazu Hirata <kazu@google.com> | 2024-05-18 11:39:23 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2024-05-18 11:39:23 -0700 |
commit | 8d3e1022c8883f2bfe9faccb82ce807c1cf4272c (patch) | |
tree | b320a40834cd96bbffbbc52d673b253dc92a39ee | |
parent | 003cebdaccc4ad3a3b6f9e177ee5049c8b6a9cbb (diff) | |
download | llvm-8d3e1022c8883f2bfe9faccb82ce807c1cf4272c.zip llvm-8d3e1022c8883f2bfe9faccb82ce807c1cf4272c.tar.gz llvm-8d3e1022c8883f2bfe9faccb82ce807c1cf4272c.tar.bz2 |
[DWARFLinker] Use an implicit conversion of SmallString to StringRef (NFC)
-rw-r--r-- | llvm/lib/DWARFLinker/Parallel/OutputSections.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DWARFLinker/Parallel/OutputSections.h b/llvm/lib/DWARFLinker/Parallel/OutputSections.h index 0e1f2da..d2e4622 100644 --- a/llvm/lib/DWARFLinker/Parallel/OutputSections.h +++ b/llvm/lib/DWARFLinker/Parallel/OutputSections.h @@ -220,7 +220,7 @@ struct SectionDescriptor : SectionDescriptorBase { /// Returns section content. StringRef getContents() override { if (SectionOffsetInsideAsmPrinterOutputStart == 0) - return StringRef(Contents.data(), Contents.size()); + return Contents; return Contents.slice(SectionOffsetInsideAsmPrinterOutputStart, SectionOffsetInsideAsmPrinterOutputEnd); |