summaryrefslogtreecommitdiff
path: root/src/cmd/6l
diff options
context:
space:
mode:
authorLuuk van Dijk <lvd@golang.org>2010-08-30 22:20:38 +0200
committerLuuk van Dijk <lvd@golang.org>2010-08-30 22:20:38 +0200
commit0613ad6ae04bf4e055a8c2d7af50f529e81a506a (patch)
tree80804535da3b13be71734e66be6a60e9fd840041 /src/cmd/6l
parent04276d50e7e1fc9774eed07f7bf1b3b82cd40896 (diff)
downloadgo-0613ad6ae04bf4e055a8c2d7af50f529e81a506a.tar.gz
8l: emit DWARF in ELF.
R=rsc, r, ken2 CC=golang-dev http://codereview.appspot.com/2004046
Diffstat (limited to 'src/cmd/6l')
-rw-r--r--src/cmd/6l/asm.c3
-rw-r--r--src/cmd/6l/l.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/6l/asm.c b/src/cmd/6l/asm.c
index db11f14ef..af615e693 100644
--- a/src/cmd/6l/asm.c
+++ b/src/cmd/6l/asm.c
@@ -641,8 +641,7 @@ asmb(void)
dwarfemitdebugsections();
}
- } else
- if(dlm){
+ } else if(dlm){
seek(cout, HEADR+textsize+datsize, 0);
asmdyn();
cflush();
diff --git a/src/cmd/6l/l.h b/src/cmd/6l/l.h
index 9a77658c3..a8428865a 100644
--- a/src/cmd/6l/l.h
+++ b/src/cmd/6l/l.h
@@ -394,9 +394,9 @@ Prog* brchain(Prog*);
Prog* brloop(Prog*);
void buildop(void);
void cflush(void);
-vlong cpos(void);
void ckoff(Sym*, int32);
Prog* copyp(Prog*);
+vlong cpos(void);
double cputime(void);
void datblk(int32, int32);
void deadcode(void);