mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Change error to warning when a profile cannot be found.
When the profile for a function cannot be applied, we use to emit an error. This seems extreme. The compiler can continue, it's just that the optimization opportunities won't include profile information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -673,7 +673,9 @@ unsigned SampleProfileLoader::getFunctionLoc(Function &F) {
|
||||
// If could not find the start of \p F, emit a diagnostic to inform the user
|
||||
// about the missed opportunity.
|
||||
F.getContext().diagnose(DiagnosticInfoSampleProfile(
|
||||
"No debug information found in function " + F.getName()));
|
||||
"No debug information found in function " + F.getName() +
|
||||
": Function profile not used",
|
||||
DS_Warning));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user