Commit 64967ffe authored by Clément Chigot's avatar Clément Chigot Committed by Brad Fitzpatrick

cmd/compile/internal/ssa: fix TestStmtLines for AIX

This commit adapts TestStmtLines for AIX operating system.

Update #25893

Change-Id: I1c76bbd8fc679a66b65ecfbd1ed7745518064eae
Reviewed-on: https://go-review.googlesource.com/c/144958Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent db9e15e6
package ssa_test
import (
"cmd/internal/xcoff"
"debug/dwarf"
"debug/elf"
"debug/macho"
......@@ -25,6 +26,10 @@ func open(path string) (*dwarf.Data, error) {
return fh.DWARF()
}
if fh, err := xcoff.Open(path); err == nil {
return fh.DWARF()
}
return nil, fmt.Errorf("unrecognized executable format")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment