summaryrefslogtreecommitdiff
path: root/src/cmd/8a
diff options
context:
space:
mode:
authorAnthony Martin <ality@pbrane.org>2014-02-12 14:29:11 -0500
committerAnthony Martin <ality@pbrane.org>2014-02-12 14:29:11 -0500
commit4fd1804be969e00451508f1b97dfb461627b4f7e (patch)
tree7d3f8b41fa060fcb9cfb363882968a82484294ed /src/cmd/8a
parent334bd5a56c780acc2f0640042637906f698bab71 (diff)
downloadgo-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/8a')
-rw-r--r--src/cmd/8a/lex.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd/8a/lex.c b/src/cmd/8a/lex.c
index af816a00c..b48b900b1 100644
--- a/src/cmd/8a/lex.c
+++ b/src/cmd/8a/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);
listinit8();
+ fmtinstall('L', Lconv);
ensuresymb(NSYMB);
memset(debug, 0, sizeof(debug));