Skip to content

Commit bdea2f7

Browse files
committed
Remove gcsReportPolicytoString function
This is no longer needed now this PR is using the new `ReportPolicy` enum.
1 parent 5660484 commit bdea2f7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lld/ELF/Driver.cpp

-11
Original file line numberDiff line numberDiff line change
@@ -2825,17 +2825,6 @@ static void redirectSymbols(Ctx &ctx, ArrayRef<WrappedSymbol> wrapped) {
28252825
ctx.symtab->wrap(w.sym, w.real, w.wrap);
28262826
}
28272827

2828-
static StringRef gcsReportPolicytoString(GcsReportPolicy value) {
2829-
StringRef ret;
2830-
if (value == GcsReportPolicy::Warning)
2831-
ret = "warning";
2832-
else if (value == GcsReportPolicy::Error)
2833-
ret = "error";
2834-
else
2835-
ret = "none";
2836-
return ret;
2837-
}
2838-
28392828
// To enable CET (x86's hardware-assisted control flow enforcement), each
28402829
// source file must be compiled with -fcf-protection. Object files compiled
28412830
// with the flag contain feature flags indicating that they are compatible

0 commit comments

Comments
 (0)