diff options
author | Anthony Martin <ality@pbrane.org> | 2014-02-12 14:29:11 -0500 |
---|---|---|
committer | Anthony Martin <ality@pbrane.org> | 2014-02-12 14:29:11 -0500 |
commit | 4fd1804be969e00451508f1b97dfb461627b4f7e (patch) | |
tree | 7d3f8b41fa060fcb9cfb363882968a82484294ed /src/cmd/6a | |
parent | 334bd5a56c780acc2f0640042637906f698bab71 (diff) | |
download | go-4fd1804be969e00451508f1b97dfb461627b4f7e.tar.gz |
cmd/cc, cmd/gc, cmd/ld: consolidate print format routines
We now use the %A, %D, %P, and %R routines from liblink
across the board.
Fixes issue 7178.
Fixes issue 7055.
LGTM=iant
R=golang-codereviews, gobot, rsc, dave, iant, remyoudompheng
CC=golang-codereviews
https://codereview.appspot.com/49170043
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/6a')
-rw-r--r-- | src/cmd/6a/lex.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd/6a/lex.c b/src/cmd/6a/lex.c index 4319e6435..d81d3be50 100644 --- a/src/cmd/6a/lex.c +++ b/src/cmd/6a/lex.c @@ -57,6 +57,12 @@ pathchar(void) return '/'; } +int +Lconv(Fmt *fp) +{ + return linklinefmt(ctxt, fp); +} + void main(int argc, char *argv[]) { @@ -71,6 +77,7 @@ main(int argc, char *argv[]) ctxt->bso = &bstdout; Binit(&bstdout, 1, OWRITE); listinit6(); + fmtinstall('L', Lconv); ensuresymb(NSYMB); memset(debug, 0, sizeof(debug)); |