diff options
| author | Maksim Panchenko <maks@fb.com> | 2024-08-20 13:41:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-20 13:41:19 -0700 |
| commit | 8f3050684ef22aa8403c3820e89ebef915136bf7 (patch) | |
| tree | 95c16af297883987116ace8c082354dfa25efdc2 /bolt | |
| parent | 0c489863e77575287caa57f1194c78ac3c30035b (diff) | |
| download | llvm-8f3050684ef22aa8403c3820e89ebef915136bf7.tar.gz llvm-8f3050684ef22aa8403c3820e89ebef915136bf7.tar.bz2 llvm-8f3050684ef22aa8403c3820e89ebef915136bf7.zip | |
[BOLT] Reduce CFI warning verbosity (#105336)
CFI programs may have more saves than restores and this is completely
benign from BOLT's perspective. Reduce the verbosity and print the
warning only under `-v=1` and above.
Diffstat (limited to 'bolt')
| -rw-r--r-- | bolt/lib/Core/BinaryFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt/lib/Core/BinaryFunction.cpp b/bolt/lib/Core/BinaryFunction.cpp index e5c6d551e42a..af982fd60b17 100644 --- a/bolt/lib/Core/BinaryFunction.cpp +++ b/bolt/lib/Core/BinaryFunction.cpp @@ -2502,7 +2502,7 @@ void BinaryFunction::annotateCFIState() { } } - if (!StateStack.empty()) { + if (opts::Verbosity >= 1 && !StateStack.empty()) { BC.errs() << "BOLT-WARNING: non-empty CFI stack at the end of " << *this << '\n'; } |
