blob: b65eda2ee75bb3f6f0e184408e4687fe68cf42a8 [file] [log] [blame]
// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.ir.analysis.escape;
import com.android.tools.r8.graph.AppView;
import com.android.tools.r8.graph.ProgramMethod;
import com.android.tools.r8.ir.code.Instruction;
public class DefaultEscapeAnalysisConfiguration implements EscapeAnalysisConfiguration {
private static final DefaultEscapeAnalysisConfiguration INSTANCE =
new DefaultEscapeAnalysisConfiguration();
private DefaultEscapeAnalysisConfiguration() {}
public static DefaultEscapeAnalysisConfiguration getInstance() {
return INSTANCE;
}
@Override
public boolean isLegitimateEscapeRoute(
AppView<?> appView,
EscapeAnalysis escapeAnalysis,
Instruction escapeRoute,
ProgramMethod context) {
return false;
}
}