mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-10-16 10:07:00 +02:00
[svn r13] * Updated for LLVM 2.1
* Class v-tables are now typesafe * Code cleanups
This commit is contained in:
@@ -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
@@ -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\
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -433,6 +433,7 @@ struct TypeFunction : Type
|
||||
unsigned totym();
|
||||
|
||||
bool llvmRetInPtr;
|
||||
bool llvmUsesThis;
|
||||
llvm::Value* llvmRetArg;
|
||||
llvm::Instruction* llvmAllocaPoint;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user