[llvm] 317e6ff - [NFC] Move parameter into field (#91065)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 10:07:47 PDT 2024
Author: Danny Mösch
Date: 2024-05-09T10:07:43-07:00
New Revision: 317e6ff6290c4c3065cb79c3eaf52f171e40cdfd
URL: https://github.com/llvm/llvm-project/commit/317e6ff6290c4c3065cb79c3eaf52f171e40cdfd
DIFF: https://github.com/llvm/llvm-project/commit/317e6ff6290c4c3065cb79c3eaf52f171e40cdfd.diff
LOG: [NFC] Move parameter into field (#91065)
Fixes #89194.
Added:
Modified:
llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h b/llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
index 06f1396c06fe8..d8e41fe922581 100644
--- a/llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
+++ b/llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
@@ -97,13 +97,15 @@ struct LTOCodeGenerator {
void setFileType(CodeGenFileType FT) { Config.CGFileType = FT; }
void setCpu(StringRef MCpu) { Config.CPU = std::string(MCpu); }
- void setAttrs(std::vector<std::string> MAttrs) { Config.MAttrs = MAttrs; }
+ void setAttrs(std::vector<std::string> MAttrs) {
+ Config.MAttrs = std::move(MAttrs);
+ }
void setOptLevel(unsigned OptLevel);
void setShouldInternalize(bool Value) { ShouldInternalize = Value; }
void setShouldEmbedUselists(bool Value) { ShouldEmbedUselists = Value; }
void setSaveIRBeforeOptPath(std::string Value) {
- SaveIRBeforeOptPath = Value;
+ SaveIRBeforeOptPath = std::move(Value);
}
/// Restore linkage of globals
More information about the llvm-commits
mailing list