Skip to content

Commit

Permalink
*: un-export unnecessarily public symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
aarzilli authored and derekparker committed Mar 31, 2020
1 parent 1ee8d5c commit 3c8d4d5
Show file tree
Hide file tree
Showing 41 changed files with 593 additions and 639 deletions.
2 changes: 1 addition & 1 deletion pkg/dwarf/frame/entries.go
Expand Up @@ -53,7 +53,7 @@ func (fde *FrameDescriptionEntry) EstablishFrame(pc uint64) *FrameContext {

type FrameDescriptionEntries []*FrameDescriptionEntry

func NewFrameIndex() FrameDescriptionEntries {
func newFrameIndex() FrameDescriptionEntries {
return make(FrameDescriptionEntries, 0, 1000)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/dwarf/frame/entries_test.go
Expand Up @@ -13,7 +13,7 @@ func ptrSizeByRuntimeArch() int {
}

func TestFDEForPC(t *testing.T) {
frames := NewFrameIndex()
frames := newFrameIndex()
frames = append(frames,
&FrameDescriptionEntry{begin: 10, size: 40},
&FrameDescriptionEntry{begin: 50, size: 50},
Expand Down
2 changes: 1 addition & 1 deletion pkg/dwarf/frame/parser.go
Expand Up @@ -29,7 +29,7 @@ type parseContext struct {
func Parse(data []byte, order binary.ByteOrder, staticBase uint64, ptrSize int) FrameDescriptionEntries {
var (
buf = bytes.NewBuffer(data)
pctx = &parseContext{buf: buf, entries: NewFrameIndex(), staticBase: staticBase, ptrSize: ptrSize}
pctx = &parseContext{buf: buf, entries: newFrameIndex(), staticBase: staticBase, ptrSize: ptrSize}
)

for fn := parselength; buf.Len() != 0; {
Expand Down
4 changes: 2 additions & 2 deletions pkg/dwarf/frame/table.go
Expand Up @@ -127,7 +127,7 @@ func executeCIEInstructions(cie *CommonInformationEntry) *FrameContext {
buf: bytes.NewBuffer(initialInstructions),
}

frame.ExecuteDwarfProgram()
frame.executeDwarfProgram()
return frame
}

Expand All @@ -142,7 +142,7 @@ func executeDwarfProgramUntilPC(fde *FrameDescriptionEntry, pc uint64) *FrameCon
return frame
}

func (frame *FrameContext) ExecuteDwarfProgram() {
func (frame *FrameContext) executeDwarfProgram() {
for frame.buf.Len() > 0 {
executeDwarfInstruction(frame)
}
Expand Down

0 comments on commit 3c8d4d5

Please sign in to comment.