From 25915c6ad2cb248b99fd61015e34fa9e819397b3 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Fri, 14 Oct 2022 22:37:35 +0000 Subject: [PATCH] [objcopy][MachO] Clean up Section ctors, NFC --- llvm/lib/ObjCopy/MachO/MachOObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/ObjCopy/MachO/MachOObject.cpp b/llvm/lib/ObjCopy/MachO/MachOObject.cpp index 015ba14..699d251 100644 --- a/llvm/lib/ObjCopy/MachO/MachOObject.cpp +++ b/llvm/lib/ObjCopy/MachO/MachOObject.cpp @@ -14,11 +14,11 @@ using namespace llvm; using namespace llvm::objcopy::macho; Section::Section(StringRef SegName, StringRef SectName) - : Segname(std::string(SegName)), Sectname(std::string(SectName)), + : Segname(SegName), Sectname(SectName), CanonicalName((Twine(SegName) + Twine(',') + SectName).str()) {} Section::Section(StringRef SegName, StringRef SectName, StringRef Content) - : Segname(std::string(SegName)), Sectname(std::string(SectName)), + : Segname(SegName), Sectname(SectName), CanonicalName((Twine(SegName) + Twine(',') + SectName).str()), Content(Content) {} -- 2.7.4