[svn r13] * Updated for LLVM 2.1

* Class v-tables are now typesafe
* Code cleanups
This commit is contained in:
Tomas Lindquist Olsen
2007-10-01 21:19:53 +02:00
parent 1609cb80d4
commit e95466cb64
12 changed files with 222 additions and 249 deletions
-3
View File
@@ -126,9 +126,6 @@ struct Declaration : Dsymbol
Declaration *isDeclaration() { return this; }
virtual void toObjFile(); // compile to .obj file
// llvm stuff
llvm::Value* llvmValue;
};
/**************************************************************/
+2 -1
View File
@@ -158,7 +158,8 @@ void usage()
printf("LLVM D Compiler %s (based on DMD %s)\n%s\n%s\n",
global.llvmdc_version, global.version, global.copyright, global.written);
printf("\
Documentation: http://www.digitalmars.com/d/1.0/index.html\n\
D Language Documentation: http://www.digitalmars.com/d/1.0/index.html\n\
LLVMDC Homepage: http://www.dsource.org/projects/llvmdc\n\
Usage:\n\
dmd files.d ... { -switch }\n\
\n\
+1
View File
@@ -2541,6 +2541,7 @@ TypeFunction::TypeFunction(Arguments *parameters, Type *treturn, int varargs, en
this->linkage = linkage;
this->inuse = 0;
this->llvmRetInPtr = false;
this->llvmUsesThis = false;
this->llvmRetArg = 0;
this->llvmAllocaPoint = 0;
}
+1
View File
@@ -433,6 +433,7 @@ struct TypeFunction : Type
unsigned totym();
bool llvmRetInPtr;
bool llvmUsesThis;
llvm::Value* llvmRetArg;
llvm::Instruction* llvmAllocaPoint;
};