@@ -34,7 +34,7 @@ Expected<const COFFConfig &> ConfigManager::getCOFFConfig() const {
3434 Common.DiscardMode == DiscardType::Locals ||
3535 !Common.SymbolsToAdd .empty () || Common.GapFill != 0 ||
3636 Common.PadTo != 0 || Common.ChangeSectionLMAValAll != 0 ||
37- !Common.ChangeSectionAddress .empty () || Common.DumpOffloadBundle ) ||
37+ !Common.ChangeSectionAddress .empty () || Common.DumpOffloadBundle ||
3838 !Common.ExtractSection .empty ())
3939 return createStringError (llvm::errc::invalid_argument,
4040 " option is not supported for COFF" );
@@ -56,7 +56,7 @@ Expected<const MachOConfig &> ConfigManager::getMachOConfig() const {
5656 Common.DiscardMode == DiscardType::Locals ||
5757 !Common.SymbolsToAdd .empty () || Common.GapFill != 0 ||
5858 Common.PadTo != 0 || Common.ChangeSectionLMAValAll != 0 ||
59- !Common.ChangeSectionAddress .empty () || Common.DumpOffloadBundle ) ||
59+ !Common.ChangeSectionAddress .empty () || Common.DumpOffloadBundle ||
6060 !Common.ExtractSection .empty ())
6161 return createStringError (llvm::errc::invalid_argument,
6262 " option is not supported for MachO" );
@@ -78,7 +78,7 @@ Expected<const WasmConfig &> ConfigManager::getWasmConfig() const {
7878 !Common.SetSectionFlags .empty () || !Common.SetSectionType .empty () ||
7979 !Common.SymbolsToRename .empty () || Common.GapFill != 0 ||
8080 Common.PadTo != 0 || Common.ChangeSectionLMAValAll != 0 ||
81- !Common.ChangeSectionAddress .empty () || Common.DumpOffloadBundle ) ||
81+ !Common.ChangeSectionAddress .empty () || Common.DumpOffloadBundle ||
8282 !Common.ExtractSection .empty ())
8383 return createStringError (llvm::errc::invalid_argument,
8484 " only flags for section dumping, removal, and "
@@ -109,12 +109,12 @@ Expected<const XCOFFConfig &> ConfigManager::getXCOFFConfig() const {
109109 Common.Weaken || Common.StripUnneeded || Common.DecompressDebugSections ||
110110 Common.GapFill != 0 || Common.PadTo != 0 ||
111111 Common.ChangeSectionLMAValAll != 0 ||
112- !Common.ChangeSectionAddress .empty () || Common.DumpOffloadBundle ) ||
112+ !Common.ChangeSectionAddress .empty () || Common.DumpOffloadBundle ||
113113 !Common.ExtractSection .empty ()) {
114114 return createStringError (
115115 llvm::errc::invalid_argument,
116116 " no flags are supported yet, only basic copying is allowed" );
117- }
117+ }
118118
119119 return XCOFF;
120120}
0 commit comments