Skip to content

Commit 2eb268c

Browse files
committed
olpaw review
1 parent e24f4e9 commit 2eb268c

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVDebugInfo.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,7 @@ public final class CVDebugInfo extends DebugInfoBase {
4646
public static final byte RHEAPBASE_X86 = (byte) 14;
4747
public static final byte RTHREAD_X86 = (byte) 15;
4848

49-
/**
50-
* Register used to hold the heap base.
51-
*/
5249
private final byte heapbaseRegister;
53-
/**
54-
* Register used to hold the current thread.
55-
*/
5650
private final byte threadRegister;
5751

5852
public CVDebugInfo(PECoffMachine machine, ByteOrder byteOrder) {

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVSymbolSubrecord.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public static class CVSymbolGData32Record extends CVSymbolSubrecord {
254254
protected final String name;
255255
private final String relativeTo;
256256

257-
CVSymbolGData32Record(CVDebugInfo cvDebugInfo, short cmd, String name, String relativeTo, int typeIndex, int offset, short segment) {
257+
protected CVSymbolGData32Record(CVDebugInfo cvDebugInfo, short cmd, String name, String relativeTo, int typeIndex, int offset, short segment) {
258258
super(cvDebugInfo, cmd);
259259
this.name = name;
260260
this.relativeTo = relativeTo;
@@ -263,11 +263,6 @@ public static class CVSymbolGData32Record extends CVSymbolSubrecord {
263263
this.segment = segment;
264264
}
265265

266-
@SuppressWarnings("unused")
267-
CVSymbolGData32Record(CVDebugInfo cvDebugInfo, String name, int typeIndex, int offset, short segment) {
268-
this(cvDebugInfo, CVDebugConstants.S_GDATA32, name, null, typeIndex, offset, segment);
269-
}
270-
271266
CVSymbolGData32Record(CVDebugInfo cvDebugInfo, String name, String relativeTo, int typeIndex, int offset, short segment) {
272267
this(cvDebugInfo, CVDebugConstants.S_GDATA32, name, relativeTo, typeIndex, offset, segment);
273268
}

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVSymbolSubsectionBuilder.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,12 @@
3333
import com.oracle.objectfile.debugentry.PrimaryEntry;
3434
import com.oracle.objectfile.debugentry.Range;
3535
import com.oracle.objectfile.debugentry.TypeEntry;
36+
import com.oracle.objectfile.elf.dwarf.DwarfDebugInfo;
3637
import com.oracle.objectfile.pecoff.PECoffObjectFile;
3738
import org.graalvm.compiler.debug.DebugContext;
3839

3940
import java.lang.reflect.Modifier;
4041

41-
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.HEAP_BEGIN_NAME;
42-
4342
final class CVSymbolSubsectionBuilder {
4443

4544
private final CVDebugInfo cvDebugInfo;
@@ -106,7 +105,7 @@ private void build(ClassEntry classEntry) {
106105
addToSymbolSubsection(new CVSymbolSubrecord.CVSymbolRegRel32Record(cvDebugInfo, externName, typeIndex, f.getOffset(), cvDebugInfo.getHeapbaseRegister()));
107106
} else {
108107
/* Offset from heap begin. */
109-
addToSymbolSubsection(new CVSymbolSubrecord.CVSymbolGData32Record(cvDebugInfo, externName, HEAP_BEGIN_NAME, typeIndex, f.getOffset(), sectionId));
108+
addToSymbolSubsection(new CVSymbolSubrecord.CVSymbolGData32Record(cvDebugInfo, externName, DwarfDebugInfo.HEAP_BEGIN_NAME, typeIndex, f.getOffset(), sectionId));
110109
}
111110
});
112111
}

0 commit comments

Comments
 (0)