const char* InlGetTargetString(InlineObservation obs) { InlineTarget t = InlGetTarget(obs); switch (t) { case InlineTarget::CALLER: return "caller"; case InlineTarget::CALLEE: return "callee"; case InlineTarget::CALLSITE: return "call site"; default: return "unexpected target"; } }
void LegacyPolicy::NoteInternal(InlineObservation obs) { // Note any INFORMATION that reaches here will now cause failure. // Non-fatal INFORMATION observations must be handled higher up. InlineTarget target = InlGetTarget(obs); if (target == InlineTarget::CALLEE) { this->SetNever(obs); } else { this->SetFailure(obs); } }