# HG changeset patch # User lindquist # Date 1201089369 -3600 # Node ID ffcc9a2f3d9d8527aff4ce87cc646431886f5f1d # Parent 0ab29b838084330d2bf5246562d81f462741819c [svn r144] fixes diff -r 0ab29b838084 -r ffcc9a2f3d9d gen/todebug.cpp --- a/gen/todebug.cpp Tue Jan 22 00:01:16 2008 +0100 +++ b/gen/todebug.cpp Wed Jan 23 12:56:09 2008 +0100 @@ -135,8 +135,11 @@ vals.push_back(DtoConstUint(DW_LANG_C));// _D)); // doesn't seem to work vals.push_back(DtoConstStringPtr(m->srcfile->name->toChars(), "llvm.metadata")); std::string srcpath(FileName::path(m->srcfile->name->toChars())); - if (srcpath.empty()) - srcpath = "."; + if (srcpath.empty()) { + const char* str = get_current_dir_name(); + assert(str != NULL); + srcpath = str; + } vals.push_back(DtoConstStringPtr(srcpath.c_str(), "llvm.metadata")); vals.push_back(DtoConstStringPtr("LLVMDC (http://www.dsource.org/projects/llvmdc)", "llvm.metadata")); diff -r 0ab29b838084 -r ffcc9a2f3d9d ir/irstruct.h --- a/ir/irstruct.h Tue Jan 22 00:01:16 2008 +0100 +++ b/ir/irstruct.h Wed Jan 23 12:56:09 2008 +0100 @@ -42,9 +42,17 @@ : var(v), type(ty), init(NULL) {} }; + struct InterCmp + { + bool operator()(ClassDeclaration* lhs, ClassDeclaration* rhs) const + { + return strcmp(lhs->toPrettyChars(), rhs->toPrettyChars()) < 0; + } + }; + typedef std::multimap OffsetMap; typedef std::vector VarDeclVector; - typedef std::map InterfaceMap; + typedef std::map InterfaceMap; typedef InterfaceMap::iterator InterfaceIter; public: diff -r 0ab29b838084 -r ffcc9a2f3d9d llvmdc.kdevelop --- a/llvmdc.kdevelop Tue Jan 22 00:01:16 2008 +0100 +++ b/llvmdc.kdevelop Wed Jan 23 12:56:09 2008 +0100 @@ -574,6 +574,94 @@ dmd25/utf.h dmd25/version.c dmd25/version.h + dmd26 + dmd26/access.c + dmd26/aggregate.h + dmd26/array.c + dmd26/arraytypes.h + dmd26/attrib.c + dmd26/attrib.h + dmd26/cast.c + dmd26/class.c + dmd26/complex_t.h + dmd26/cond.c + dmd26/cond.h + dmd26/constfold.c + dmd26/dchar.c + dmd26/dchar.h + dmd26/declaration.c + dmd26/declaration.h + dmd26/delegatize.c + dmd26/doc.c + dmd26/doc.h + dmd26/dsymbol.c + dmd26/dsymbol.h + dmd26/dump.c + dmd26/entity.c + dmd26/enum.c + dmd26/enum.h + dmd26/expression.c + dmd26/expression.h + dmd26/func.c + dmd26/gnuc.c + dmd26/gnuc.h + dmd26/hdrgen.c + dmd26/hdrgen.h + dmd26/html.c + dmd26/html.h + dmd26/identifier.c + dmd26/identifier.h + dmd26/idgen.c + dmd26/impcnvgen.c + dmd26/import.c + dmd26/import.h + dmd26/inifile.c + dmd26/init.c + dmd26/init.h + dmd26/inline.c + dmd26/interpret.c + dmd26/lexer.c + dmd26/lexer.h + dmd26/link.c + dmd26/lstring.c + dmd26/lstring.h + dmd26/macro.c + dmd26/macro.h + dmd26/mangle.c + dmd26/mars.c + dmd26/mars.h + dmd26/mem.c + dmd26/mem.h + dmd26/module.c + dmd26/module.h + dmd26/mtype.c + dmd26/mtype.h + dmd26/opover.c + dmd26/optimize.c + dmd26/parse.c + dmd26/parse.h + dmd26/port.h + dmd26/root.c + dmd26/root.h + dmd26/scope.c + dmd26/scope.h + dmd26/statement.c + dmd26/statement.h + dmd26/staticassert.c + dmd26/staticassert.h + dmd26/stringtable.c + dmd26/stringtable.h + dmd26/struct.c + dmd26/template.c + dmd26/template.h + dmd26/total.h + dmd26/unialpha.c + dmd26/utf.c + dmd26/utf.h + dmd26/version.c + dmd26/version.h + todo + todo/lib.d make diff -r 0ab29b838084 -r ffcc9a2f3d9d llvmdc.kdevelop.filelist --- a/llvmdc.kdevelop.filelist Tue Jan 22 00:01:16 2008 +0100 +++ b/llvmdc.kdevelop.filelist Wed Jan 23 12:56:09 2008 +0100 @@ -140,6 +140,7 @@ gen/typinf.cpp ir ir/ir.h +ir/irforw.h ir/irfunction.cpp ir/irfunction.h ir/irmodule.cpp diff -r 0ab29b838084 -r ffcc9a2f3d9d tango/lib/compiler/llvmdc/cast.d --- a/tango/lib/compiler/llvmdc/cast.d Tue Jan 22 00:01:16 2008 +0100 +++ b/tango/lib/compiler/llvmdc/cast.d Wed Jan 23 12:56:09 2008 +0100 @@ -27,7 +27,7 @@ extern (C): -//debug = PRINTF; +debug = PRINTF; debug(PRINTF) int printf(char*, ...); /****************************************** diff -r 0ab29b838084 -r ffcc9a2f3d9d tangotests/u.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tangotests/u.d Wed Jan 23 12:56:09 2008 +0100 @@ -0,0 +1,9 @@ +import tango.io.Console; +void main() +{ + Cout("getting name std").newline; + Cerr("getting name err").newline; + auto s = Cin.get(); + Cout("putting name").newline; + Cout (s).newline; +}