File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ struct LLVM_ABI ConfigManager : public MultiFormatConfig {
2727
2828 const CommonConfig &getCommonConfig () const override { return Common; }
2929
30- Expected<const ELFConfig &> getELFConfig () const override { return ELF; }
30+ Expected<const ELFConfig &> getELFConfig () const override ;
3131
3232 Expected<const COFFConfig &> getCOFFConfig () const override ;
3333
Original file line number Diff line number Diff line change 1313using namespace llvm ;
1414using namespace llvm ::objcopy;
1515
16+ Expected<const ELFConfig &> ConfigManager::getELFConfig () const {
17+ if (!Common.ExtractSection .empty ())
18+ return createStringError (llvm::errc::invalid_argument,
19+ " option is not supported for ELF" );
20+ return ELF;
21+ }
22+
1623Expected<const COFFConfig &> ConfigManager::getCOFFConfig () const {
1724 if (!Common.SplitDWO .empty () || !Common.SymbolsPrefix .empty () ||
1825 !Common.SymbolsPrefixRemove .empty () || !Common.SymbolsToSkip .empty () ||
You can’t perform that action at this time.
0 commit comments