From f95fa16f582d2f730ab7c1cb973f92704ff5f020 Mon Sep 17 00:00:00 2001 From: Eldar Insafutdinov Date: Fri, 29 Oct 2010 22:58:11 +0100 Subject: [PATCH] fix compile errors --- dmd2/expression.h | 1 - dmd2/mars.c | 1 + gen/toir.cpp | 9 --------- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/dmd2/expression.h b/dmd2/expression.h index 27cbb8c5..7c9e369e 100644 --- a/dmd2/expression.h +++ b/dmd2/expression.h @@ -1124,7 +1124,6 @@ struct CallExp : UnaExp #if IN_LLVM DValue* toElem(IRState* irs); - void cacheLvalue(IRState* irs); #endif }; diff --git a/dmd2/mars.c b/dmd2/mars.c index 07a8c49d..2333c7fb 100644 --- a/dmd2/mars.c +++ b/dmd2/mars.c @@ -35,6 +35,7 @@ #include "cond.h" #include "expression.h" #include "lexer.h" +#if !IN_LLVM #include "lib.h" #include "json.h" diff --git a/gen/toir.cpp b/gen/toir.cpp index 4be17174..bfb55b83 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -771,15 +771,6 @@ DValue* ModExp::toElem(IRState* p) ////////////////////////////////////////////////////////////////////////////////////////// -void CallExp::cacheLvalue(IRState* p) -{ - Logger::println("Caching l-value of %s", toChars()); - LOG_SCOPE; - cachedLvalue = toElem(p)->getLVal(); -} - -////////////////////////////////////////////////////////////////////////////////////////// - DValue* CallExp::toElem(IRState* p) { Logger::print("CallExp::toElem: %s @ %s\n", toChars(), type->toChars());