diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp --- a/bolt/lib/Rewrite/RewriteInstance.cpp +++ b/bolt/lib/Rewrite/RewriteInstance.cpp @@ -1433,6 +1433,9 @@ << *FragName << ". The support is limited in relocation mode.\n"; PrintedWarning = true; } + errs() << "BOLT-WARNING: disable lite mode when split function is " + << "present.\n"; + opts::Lite = false; Function.IsFragment = true; }