Mercurial > projects > ldc
comparison ir/irstruct.h @ 244:a95056b3c996 trunk
[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
Did a lot of smaller cleans up here and there.
Replaced more llvm::Foo with LLFoo for common stuff.
Split up tollvm.cpp.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 09:37:08 +0200 |
parents | ba47ac346ddd |
children | e3355ce5444b |
comparison
equal
deleted
inserted
replaced
243:4d006f7b2ada | 244:a95056b3c996 |
---|---|
42 struct IrStruct : IrBase | 42 struct IrStruct : IrBase |
43 { | 43 { |
44 struct Offset | 44 struct Offset |
45 { | 45 { |
46 VarDeclaration* var; | 46 VarDeclaration* var; |
47 const llvm::Type* type; | 47 const LLType* type; |
48 llvm::Constant* init; | 48 llvm::Constant* init; |
49 | 49 |
50 Offset(VarDeclaration* v, const llvm::Type* ty) | 50 Offset(VarDeclaration* v, const LLType* ty) |
51 : var(v), type(ty), init(NULL) {} | 51 : var(v), type(ty), init(NULL) {} |
52 }; | 52 }; |
53 | 53 |
54 typedef std::multimap<unsigned, Offset> OffsetMap; | 54 typedef std::multimap<unsigned, Offset> OffsetMap; |
55 typedef std::vector<VarDeclaration*> VarDeclVector; | 55 typedef std::vector<VarDeclaration*> VarDeclVector; |