diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-10-29 16:06:40 -0600 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-11-11 14:32:38 -0800 |
| commit | f085c198ba2dd95ce46a66ec8f8e6b472c3cca14 (patch) | |
| tree | e9c1cdcd360bf3ffd03d2265484f72d07363a0fd /sys/decl.go | |
| parent | 8b731ed4b705c3049af917f1c01db5b4a0bc59a1 (diff) | |
sys: replace FileoffType with IntType{Kind: IntFileoff}
FileoffType is effectively an int, no need for a separate type.
Also remove fd option from fileoff as it is unused and use story is unclear.
Diffstat (limited to 'sys/decl.go')
| -rw-r--r-- | sys/decl.go | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/decl.go b/sys/decl.go index 997298e8a..d5ec9a547 100644 --- a/sys/decl.go +++ b/sys/decl.go @@ -97,21 +97,6 @@ func (t *ResourceType) Align() uintptr { return t.Desc.Type.Align() } -type FileoffType struct { - TypeCommon - TypeSize uintptr - BigEndian bool - File string -} - -func (t *FileoffType) Size() uintptr { - return t.TypeSize -} - -func (t *FileoffType) Align() uintptr { - return t.Size() -} - type BufferKind int const ( @@ -232,6 +217,7 @@ const ( IntSignalno IntInaddr IntInport + IntFileoff // offset within a file IntRange ) @@ -500,7 +486,7 @@ func ForeachType(meta *Call, f func(Type)) { for _, opt := range a.Options { rec(opt) } - case *ResourceType, *FileoffType, *BufferType, + case *ResourceType, *BufferType, *VmaType, *LenType, *FlagsType, *ConstType, *StrConstType, *IntType: default: |
