Skip to content

Commit

Permalink
Drop debugInfoValueUpdateHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jan 9, 2023
1 parent 60aaa24 commit 15799f3
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, Boolean o
public static final String IMAGE_MODULEPATH_PREFIX = "-imagemp";
public static final String WATCHPID_PREFIX = "-watchpid";
private static ValueUpdateHandler<OptimizationLevel> optimizeValueUpdateHandler;
private static ValueUpdateHandler<Integer> debugInfoValueUpdateHandler = SubstrateOptions::defaultDebugInfoValueUpdateHandler;

@Fold
public static boolean getSourceLevelDebug() {
Expand Down Expand Up @@ -264,10 +263,6 @@ public static void setOptimizeValueUpdateHandler(ValueUpdateHandler<Optimization
SubstrateOptions.optimizeValueUpdateHandler = updateHandler;
}

public static void setDebugInfoValueUpdateHandler(ValueUpdateHandler<Integer> updateHandler) {
SubstrateOptions.debugInfoValueUpdateHandler = updateHandler;
}

@Option(help = "Track NodeSourcePositions during runtime-compilation")//
public static final HostedOptionKey<Boolean> IncludeNodeSourcePositions = new HostedOptionKey<>(false);

Expand Down Expand Up @@ -640,17 +635,13 @@ public static int codeAlignment() {
public static final HostedOptionKey<Integer> GenerateDebugInfo = new HostedOptionKey<>(0) {
@Override
protected void onValueUpdate(EconomicMap<OptionKey<?>, Object> values, Integer oldValue, Integer newValue) {
debugInfoValueUpdateHandler.onValueUpdate(values, newValue);
if (OS.WINDOWS.isCurrent()) {
/* Keep symbols on Windows. The symbol table is part of the pdb-file. */
DeleteLocalSymbols.update(values, newValue == 0);
}
}
};

public static void defaultDebugInfoValueUpdateHandler(EconomicMap<OptionKey<?>, Object> values, Integer newValue) {
if (OS.WINDOWS.isCurrent()) {
/* Keep symbols on Windows. The symbol table is part of the pdb-file. */
DeleteLocalSymbols.update(values, newValue == 0);
}
}

@Option(help = "Search path for source files for Application or GraalVM classes (list of comma-separated directories or jar files)")//
public static final HostedOptionKey<LocatableMultiOptionValue.Strings> DebugInfoSourceSearchPath = new HostedOptionKey<>(LocatableMultiOptionValue.Strings.commaSeparated());

Expand Down

0 comments on commit 15799f3

Please sign in to comment.