comparison gen/dwarftypes.cpp @ 133:44a95ac7368a trunk

[svn r137] Many fixes towards tango.io.Console working, but not quite there yet... In particular, assertions has been fixed to include file/line info, and much more!
author lindquist
date Mon, 14 Jan 2008 05:11:54 +0100
parents fd32135dca3e
children 9d44ec83acd1
comparison
equal deleted inserted replaced
132:1700239cab2e 133:44a95ac7368a
30 std::vector<const Type*>StructTy_llvm_dbg_basictype_type_fields; 30 std::vector<const Type*>StructTy_llvm_dbg_basictype_type_fields;
31 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(32)); 31 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(32));
32 std::vector<const Type*>StructTy_1_fields; 32 std::vector<const Type*>StructTy_1_fields;
33 StructType* StructTy_1 = StructType::get(StructTy_1_fields, /*isPacked=*/false); 33 StructType* StructTy_1 = StructType::get(StructTy_1_fields, /*isPacked=*/false);
34 34
35 PointerType* PointerTy_0 = PointerType::get(StructTy_1); 35 PointerType* PointerTy_0 = PointerType::get(StructTy_1,0);
36 36
37 StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_0); 37 StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_0);
38 PointerType* PointerTy_2 = PointerType::get(IntegerType::get(8)); 38 PointerType* PointerTy_2 = PointerType::get(IntegerType::get(8),0);
39 39
40 StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_2); 40 StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_2);
41 StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_0); 41 StructTy_llvm_dbg_basictype_type_fields.push_back(PointerTy_0);
42 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(32)); 42 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(32));
43 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(64)); 43 StructTy_llvm_dbg_basictype_type_fields.push_back(IntegerType::get(64));
128 StructType* StructTy_llvm_dbg_variable_type = StructType::get(StructTy_llvm_dbg_variable_type_fields, /*isPacked=*/false); 128 StructType* StructTy_llvm_dbg_variable_type = StructType::get(StructTy_llvm_dbg_variable_type_fields, /*isPacked=*/false);
129 mod->addTypeName("llvm.dbg.variable.type", StructTy_llvm_dbg_variable_type); 129 mod->addTypeName("llvm.dbg.variable.type", StructTy_llvm_dbg_variable_type);
130 130
131 std::vector<const Type*>FuncTy_3_args; 131 std::vector<const Type*>FuncTy_3_args;
132 FuncTy_3_args.push_back(PointerTy_0); 132 FuncTy_3_args.push_back(PointerTy_0);
133 ParamAttrsList *FuncTy_3_PAL = 0;
134 FunctionType* FuncTy_3 = FunctionType::get( 133 FunctionType* FuncTy_3 = FunctionType::get(
135 /*Result=*/Type::VoidTy, 134 /*Result=*/Type::VoidTy,
136 /*Params=*/FuncTy_3_args, 135 /*Params=*/FuncTy_3_args,
137 /*isVarArg=*/false, 136 /*isVarArg=*/false);
138 /*ParamAttrs=*/FuncTy_3_PAL);
139 137
140 std::vector<const Type*>FuncTy_4_args; 138 std::vector<const Type*>FuncTy_4_args;
141 FuncTy_4_args.push_back(IntegerType::get(32)); 139 FuncTy_4_args.push_back(IntegerType::get(32));
142 FuncTy_4_args.push_back(IntegerType::get(32)); 140 FuncTy_4_args.push_back(IntegerType::get(32));
143 FuncTy_4_args.push_back(PointerTy_0); 141 FuncTy_4_args.push_back(PointerTy_0);
144 ParamAttrsList *FuncTy_4_PAL = 0;
145 FunctionType* FuncTy_4 = FunctionType::get( 142 FunctionType* FuncTy_4 = FunctionType::get(
146 /*Result=*/Type::VoidTy, 143 /*Result=*/Type::VoidTy,
147 /*Params=*/FuncTy_4_args, 144 /*Params=*/FuncTy_4_args,
148 /*isVarArg=*/false, 145 /*isVarArg=*/false);
149 /*ParamAttrs=*/FuncTy_4_PAL);
150 146
151 std::vector<const Type*>FuncTy_5_args; 147 std::vector<const Type*>FuncTy_5_args;
152 FuncTy_5_args.push_back(PointerTy_0); 148 FuncTy_5_args.push_back(PointerTy_0);
153 FuncTy_5_args.push_back(PointerTy_0); 149 FuncTy_5_args.push_back(PointerTy_0);
154 ParamAttrsList *FuncTy_5_PAL = 0;
155 FunctionType* FuncTy_5 = FunctionType::get( 150 FunctionType* FuncTy_5 = FunctionType::get(
156 /*Result=*/Type::VoidTy, 151 /*Result=*/Type::VoidTy,
157 /*Params=*/FuncTy_5_args, 152 /*Params=*/FuncTy_5_args,
158 /*isVarArg=*/false, 153 /*isVarArg=*/false);
159 /*ParamAttrs=*/FuncTy_5_PAL);
160 154
161 155
162 // Function Declarations 156 // Function Declarations
163 157
164 Function* func_llvm_dbg_func_start = new Function( 158 Function* func_llvm_dbg_func_start = new Function(