aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder/objcopy.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-05-31 13:11:00 +0200
committerRon Evans <[email protected]>2020-06-01 19:03:15 +0200
commit3c31a3110f7b91e738154e27198576951aa9290e (patch)
tree85eb42d971d7727acc38c1fa799e81e54db30aab /builder/objcopy.go
parent0e73790d67ef4f56187c62b8a87d6ee197a3d03a (diff)
downloadtinygo-3c31a3110f7b91e738154e27198576951aa9290e.tar.gz
tinygo-3c31a3110f7b91e738154e27198576951aa9290e.zip
builder: use newer version of gohex
This version adds error handling for the DumpIntelHex method, and thus fixes a TODO comment.
Diffstat (limited to 'builder/objcopy.go')
-rw-r--r--builder/objcopy.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/builder/objcopy.go b/builder/objcopy.go
index 3ab0eaeff..e5b245c67 100644
--- a/builder/objcopy.go
+++ b/builder/objcopy.go
@@ -123,8 +123,7 @@ func objcopy(infile, outfile string) error {
if err != nil {
return objcopyError{"failed to create .hex file", err}
}
- mem.DumpIntelHex(f, 16) // TODO: handle error
- return nil
+ return mem.DumpIntelHex(f, 16)
default:
panic("unreachable")
}