mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-29 10:30:04 +02:00
[svn r35] * Attributes on struct fields/methods now work
* Updated object.d to 1.021 * Added -novalidate command line option. this is sometimes useful when debugging as it may let you read the .ll even if it's invalid.
This commit is contained in:
@@ -41,7 +41,7 @@ struct IRStruct : Object
|
||||
{
|
||||
typedef std::vector<const llvm::Type*> TypeVector;
|
||||
typedef std::vector<llvm::Constant*> ConstantVector;
|
||||
typedef std::vector<llvm::PATypeHolder> PATypeHolderVector;
|
||||
typedef std::vector<FuncDeclaration*> FuncDeclVec;
|
||||
|
||||
public:
|
||||
IRStruct();
|
||||
@@ -52,6 +52,8 @@ public:
|
||||
TypeVector fields;
|
||||
ConstantVector inits;
|
||||
llvm::PATypeHolder recty;
|
||||
FuncDeclVec funcs;
|
||||
bool queueFuncs;
|
||||
};
|
||||
|
||||
// represents the module
|
||||
@@ -79,13 +81,6 @@ struct IRState : Object
|
||||
typedef std::vector<ClassDeclaration*> ClassDeclVec;
|
||||
ClassDeclVec classes;
|
||||
|
||||
typedef std::vector<FuncDeclaration*> FuncDeclVec;
|
||||
typedef std::vector<FuncDeclVec> ClassMethodVec;
|
||||
ClassMethodVec classmethods;
|
||||
|
||||
typedef std::vector<bool> BoolVec;
|
||||
BoolVec queueClassMethods;
|
||||
|
||||
// D main function
|
||||
bool emitMain;
|
||||
llvm::Function* mainFunc;
|
||||
@@ -115,6 +110,7 @@ struct IRState : Object
|
||||
LvalVec arrays;
|
||||
|
||||
// keeping track of the declaration for the current function body
|
||||
typedef std::vector<FuncDeclaration*> FuncDeclVec;
|
||||
FuncDeclVec funcdecls;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user