diff --git a/llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp b/llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp --- a/llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp +++ b/llvm/tools/llvm-objcopy/wasm/WasmObjcopy.cpp @@ -55,7 +55,7 @@ SecName.str().c_str()); } -static void removeSections(const CopyConfig &Config, Object &Obj) { +static void removeSections(const CommonConfig &Config, Object &Obj) { SectionPred RemovePred = [](const Section &) { return false; }; // Explicitly-requested sections. @@ -107,7 +107,7 @@ Obj.removeSections(RemovePred); } -static Error handleArgs(const CopyConfig &Config, Object &Obj) { +static Error handleArgs(const CommonConfig &Config, Object &Obj) { // Only support AddSection, DumpSection, RemoveSection for now. for (StringRef Flag : Config.DumpSection) { StringRef SecName;