File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
llvm/include/llvm/LTO/legacy Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -97,13 +97,15 @@ struct LTOCodeGenerator {
97
97
void setFileType (CodeGenFileType FT) { Config.CGFileType = FT; }
98
98
99
99
void setCpu (StringRef MCpu) { Config.CPU = std::string (MCpu); }
100
- void setAttrs (std::vector<std::string> MAttrs) { Config.MAttrs = MAttrs; }
100
+ void setAttrs (std::vector<std::string> MAttrs) {
101
+ Config.MAttrs = std::move (MAttrs);
102
+ }
101
103
void setOptLevel (unsigned OptLevel);
102
104
103
105
void setShouldInternalize (bool Value) { ShouldInternalize = Value; }
104
106
void setShouldEmbedUselists (bool Value) { ShouldEmbedUselists = Value; }
105
107
void setSaveIRBeforeOptPath (std::string Value) {
106
- SaveIRBeforeOptPath = Value;
108
+ SaveIRBeforeOptPath = std::move ( Value) ;
107
109
}
108
110
109
111
// / Restore linkage of globals
You can’t perform that action at this time.
0 commit comments