================
@@ -299,6 +299,14 @@ class LLVM_ABI OptTable {
return getInfo(id).MetaVar;
}
+ /// Get the comma-separated list of values accepted by this option, as
+ /// declared by `Values` in its TableGen definition. Returns an empty string
+ /// for options that do not declare any.
+ StringRef getOptionValues(OptSpecifier id) const {
+ const char *Values = getInfo(id).Values;
+ return Values ? StringRef(Values) : StringRef();
----------------
kiranktp wrote:
As I understood, "Returned StringRef" is valid for as long as the process runs.
https://github.com/llvm/llvm-project/pull/215966
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits