Skip to content

Commit

Permalink
Convert toelfdebug to D
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Sep 18, 2015
1 parent d53b214 commit c499389
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 61 deletions.
6 changes: 3 additions & 3 deletions src/posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ DMD_SRCS=$(addsuffix .d,access aggregate aliasthis apply argtypes arrayop \
globals hdrgen id identifier impcnvtab imphint init inline intrange \
json lexer lib link mars mtype nogc nspace opover optimize parse sapply \
sideeffect statement staticassert target tokens traits utf visitor \
typinf irstate)
typinf irstate toelfdebug)

ifeq ($(D_OBJC),1)
DMD_SRCS += objc.d
Expand All @@ -199,7 +199,7 @@ ROOT_SRCS = $(addsuffix .d,$(addprefix $(ROOT)/,aav array file filename \
stringtable))

GLUE_OBJS = glue.o msc.o s2ir.o todt.o e2ir.o tocsym.o toobj.o toctype.o \
toelfdebug.o toir.o iasm.o
toir.o iasm.o


ifeq ($(D_OBJC),1)
Expand Down Expand Up @@ -250,7 +250,7 @@ ROOT_SRC = $(addprefix $(ROOT)/,aav.h array.h file.h filename.h \
GLUE_SRC = glue.c msc.c s2ir.c todt.c e2ir.c tocsym.c \
toobj.c toctype.c tocvdebug.c toir.h toir.c \
irstate.h iasm.c \
toelfdebug.c libelf.d scanelf.d libmach.d scanmach.d \
toelfdebug.d libelf.d scanelf.d libmach.d scanmach.d \
tk.c eh.c gluestub.c objc_glue.c objc_glue_stubs.c

BACK_SRC = \
Expand Down
57 changes: 0 additions & 57 deletions src/toelfdebug.c

This file was deleted.

31 changes: 31 additions & 0 deletions src/toelfdebug.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

/* Compiler implementation of the D programming language
* Copyright (c) 1999-2014 by Digital Mars
* All Rights Reserved
* written by Walter Bright
* http://www.digitalmars.com
* Distributed under the Boost Software License, Version 1.0.
* http://www.boost.org/LICENSE_1_0.txt
* https://github.com/D-Programming-Language/dmd/blob/master/src/toelfdebug.c
*/

import ddmd.denum;
import ddmd.dstruct;
import ddmd.dclass;

/****************************
* Emit symbolic debug info in Dwarf2 format.
*/

extern(C++) void toDebug(EnumDeclaration ed)
{
//printf("EnumDeclaration::toDebug('%s')\n", ed.toChars());
}

extern(C++) void toDebug(StructDeclaration sd)
{
}

extern(C++) void toDebug(ClassDeclaration cd)
{
}
2 changes: 1 addition & 1 deletion src/win32.mak
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ SRCS = aggregate.h aliasthis.h arraytypes.h \
GLUESRC= glue.c msc.c s2ir.c todt.c e2ir.c tocsym.c \
toobj.c toctype.c tocvdebug.c toir.h toir.c \
irstate.h iasm.c \
toelfdebug.c libelf.d scanelf.d libmach.d scanmach.d \
toelfdebug.d libelf.d scanelf.d libmach.d scanmach.d \
tk.c eh.c objc_glue_stubs.c objc_glue.c

# D back end
Expand Down

0 comments on commit c499389

Please sign in to comment.