mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/obj: remove useless Trimpath field and fix users
http://golang.org/cl/7623 refactored how line history works and introduced a new TrimPathPrefix field to replace the existing Trimpath field, but never removed the latter or updated its users. Fixes #10503. Change-Id: Ief90a55b6cef2e8062b59856a4c7dcc0df01d3f2 Reviewed-on: https://go-review.googlesource.com/9113 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
b016eba489
commit
e7ffafdb6e
4 changed files with 3 additions and 4 deletions
|
|
@ -40,7 +40,7 @@ func main() {
|
|||
if *flags.PrintOut {
|
||||
ctxt.Debugasm = 1
|
||||
}
|
||||
ctxt.Trimpath = *flags.TrimPath
|
||||
ctxt.LineHist.TrimPathPrefix = *flags.TrimPath
|
||||
ctxt.Flag_dynlink = *flags.Dynlink
|
||||
if *flags.Shared || *flags.Dynlink {
|
||||
ctxt.Flag_shared = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue