[llvm] 348d36f - [OptTable] Temporarily remove deprecations
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 23:39:05 PDT 2023
Author: Nikita Popov
Date: 2023-08-16T08:38:56+02:00
New Revision: 348d36f1a2c8c776ce87e038bf15fc4cabd62702
URL: https://github.com/llvm/llvm-project/commit/348d36f1a2c8c776ce87e038bf15fc4cabd62702
DIFF: https://github.com/llvm/llvm-project/commit/348d36f1a2c8c776ce87e038bf15fc4cabd62702.diff
LOG: [OptTable] Temporarily remove deprecations
These deprecations break the -Werror=deprecated-declarations build.
Deprecations in LLVM must always be preceded by a removal of *all*
in-tree users.
Added:
Modified:
llvm/include/llvm/Option/OptTable.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Option/OptTable.h b/llvm/include/llvm/Option/OptTable.h
index 083885121656e6..bb3b665a16319f 100644
--- a/llvm/include/llvm/Option/OptTable.h
+++ b/llvm/include/llvm/Option/OptTable.h
@@ -208,7 +208,6 @@ class OptTable {
unsigned MinimumLength = 4,
unsigned MaximumDistance = UINT_MAX) const;
- LLVM_DEPRECATED("Use the VisibilityMask overload instead", "")
unsigned findNearest(StringRef Option, std::string &NearestString,
unsigned FlagsToInclude, unsigned FlagsToExclude = 0,
unsigned MinimumLength = 4,
@@ -226,7 +225,6 @@ class OptTable {
return findNearest(Option, ExactString, VisibilityMask, 4, 0) == 0;
}
- LLVM_DEPRECATED("Use the VisibilityMask overload instead", "")
bool findExact(StringRef Option, std::string &ExactString,
unsigned FlagsToInclude, unsigned FlagsToExclude = 0) const {
return findNearest(Option, ExactString, FlagsToInclude, FlagsToExclude, 4,
@@ -249,7 +247,6 @@ class OptTable {
ParseOneArg(const ArgList &Args, unsigned &Index,
Visibility VisibilityMask = Visibility()) const;
- LLVM_DEPRECATED("Use the VisibilityMask overload instead", "")
std::unique_ptr<Arg> ParseOneArg(const ArgList &Args, unsigned &Index,
unsigned FlagsToInclude,
unsigned FlagsToExclude) const;
@@ -280,7 +277,6 @@ class OptTable {
unsigned &MissingArgCount,
Visibility VisibilityMask = Visibility()) const;
- LLVM_DEPRECATED("Use the VisibilityMask overload instead", "")
InputArgList ParseArgs(ArrayRef<const char *> Args, unsigned &MissingArgIndex,
unsigned &MissingArgCount, unsigned FlagsToInclude,
unsigned FlagsToExclude = 0) const;
@@ -320,7 +316,6 @@ class OptTable {
bool ShowHidden = false, bool ShowAllAliases = false,
Visibility VisibilityMask = Visibility()) const;
- LLVM_DEPRECATED("Use the VisibilityMask overload instead", "")
void printHelp(raw_ostream &OS, const char *Usage, const char *Title,
unsigned FlagsToInclude, unsigned FlagsToExclude,
bool ShowAllAliases) const;
More information about the llvm-commits
mailing list