Skip to content

Commit d8bc47e

Browse files
committed
Add ToRemove to implemented options
1 parent 09a5ebe commit d8bc47e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

llvm/lib/ObjCopy/ConfigManager.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,21 @@ ConfigManager::getDXContainerConfig() const {
117117
!Common.AllocSectionsPrefix.empty() ||
118118
Common.DiscardMode != DiscardType::None || !Common.AddSection.empty() ||
119119
!Common.DumpSection.empty() || !Common.KeepSection.empty() ||
120-
!Common.OnlySection.empty() || !Common.ToRemove.empty() ||
121-
!Common.SectionsToRename.empty() || !Common.SetSectionAlignment.empty() ||
122-
!Common.SetSectionFlags.empty() || !Common.SetSectionType.empty() ||
123-
Common.ExtractDWO || Common.OnlyKeepDebug || Common.StripAllGNU ||
124-
Common.StripDWO || Common.StripDebug || Common.StripNonAlloc ||
125-
Common.StripSections || Common.StripUnneeded ||
126-
Common.DecompressDebugSections || Common.GapFill != 0 ||
127-
Common.PadTo != 0 || Common.ChangeSectionLMAValAll != 0 ||
120+
!Common.OnlySection.empty() || !Common.SectionsToRename.empty() ||
121+
!Common.SetSectionAlignment.empty() || !Common.SetSectionFlags.empty() ||
122+
!Common.SetSectionType.empty() || Common.ExtractDWO ||
123+
Common.OnlyKeepDebug || Common.StripAllGNU || Common.StripDWO ||
124+
Common.StripDebug || Common.StripNonAlloc || Common.StripSections ||
125+
Common.StripUnneeded || Common.DecompressDebugSections ||
126+
Common.GapFill != 0 || Common.PadTo != 0 ||
127+
Common.ChangeSectionLMAValAll != 0 ||
128128
!Common.ChangeSectionAddress.empty()) {
129129
return createStringError(
130130
llvm::errc::invalid_argument,
131131
"no flags are supported yet, only basic copying is allowed");
132132
}
133133

134134
// If a flag is listed here, then it has support for DXContainer:
135-
// Common.PreserveDates
135+
// Common.PreserveDates, Common.ToRemove
136136
return DXContainer;
137137
}

0 commit comments

Comments
 (0)