@@ -252,7 +252,7 @@ llvm::GlobalVariable *LLVMDumper::dump_constants(Proto *p) {
252
252
if (str_padding != NULL ) {
253
253
tmp_struct.push_back (str_padding);
254
254
}
255
- value = llvm::ConstantStruct::get (getCtx (), tmp_struct, false );
255
+ value = llvm::ConstantStruct::getAnon (getCtx (), tmp_struct, false );
256
256
break ;
257
257
case LUA_TBOOLEAN:
258
258
const_type = TYPE_BOOLEAN;
@@ -261,7 +261,7 @@ llvm::GlobalVariable *LLVMDumper::dump_constants(Proto *p) {
261
261
if (bool_padding != NULL ) {
262
262
tmp_struct.push_back (bool_padding);
263
263
}
264
- value = llvm::ConstantStruct::get (getCtx (), tmp_struct, false );
264
+ value = llvm::ConstantStruct::getAnon (getCtx (), tmp_struct, false );
265
265
break ;
266
266
case LUA_TNUMBER:
267
267
const_type = TYPE_NUMBER;
@@ -270,7 +270,7 @@ llvm::GlobalVariable *LLVMDumper::dump_constants(Proto *p) {
270
270
if (num_padding != NULL ) {
271
271
tmp_struct.push_back (num_padding);
272
272
}
273
- value = llvm::ConstantStruct::get (getCtx (), tmp_struct, false );
273
+ value = llvm::ConstantStruct::getAnon (getCtx (), tmp_struct, false );
274
274
break ;
275
275
case LUA_TNIL:
276
276
default :
@@ -280,7 +280,7 @@ llvm::GlobalVariable *LLVMDumper::dump_constants(Proto *p) {
280
280
if (bool_padding != NULL ) {
281
281
tmp_struct.push_back (bool_padding);
282
282
}
283
- value = llvm::ConstantStruct::get (getCtx (), tmp_struct, false );
283
+ value = llvm::ConstantStruct::getAnon (getCtx (), tmp_struct, false );
284
284
break ;
285
285
}
286
286
tmp_struct.clear ();
@@ -290,7 +290,7 @@ llvm::GlobalVariable *LLVMDumper::dump_constants(Proto *p) {
290
290
array_struct_fields.push_back (llvm::ConstantStruct::get (type, tmp_struct));
291
291
}
292
292
293
- array_struct = llvm::ConstantStruct::get (getCtx (), array_struct_fields, false );
293
+ array_struct = llvm::ConstantStruct::getAnon (getCtx (), array_struct_fields, false );
294
294
constant = new llvm::GlobalVariable (*M, array_struct->getType (), true ,
295
295
llvm::GlobalValue::InternalLinkage, array_struct, " .constants" );
296
296
// constant->setAlignment(32);
@@ -312,7 +312,7 @@ llvm::GlobalVariable *LLVMDumper::dump_locvars(Proto *p) {
312
312
array_struct_fields.push_back (llvm::ConstantStruct::get (Ty_jit_LocVar, tmp_struct));
313
313
}
314
314
315
- array_struct = llvm::ConstantStruct::get (getCtx (), array_struct_fields, false );
315
+ array_struct = llvm::ConstantStruct::getAnon (getCtx (), array_struct_fields, false );
316
316
constant = new llvm::GlobalVariable (*M, array_struct->getType (), true ,
317
317
llvm::GlobalValue::InternalLinkage, array_struct, " .locvars" );
318
318
// constant->setAlignment(32);
@@ -328,7 +328,7 @@ llvm::GlobalVariable *LLVMDumper::dump_upvalues(Proto *p) {
328
328
array_struct_fields.push_back (get_global_str (getstr (p->upvalues [i])));
329
329
}
330
330
331
- array_struct = llvm::ConstantStruct::get (getCtx (), array_struct_fields, false );
331
+ array_struct = llvm::ConstantStruct::getAnon (getCtx (), array_struct_fields, false );
332
332
constant = new llvm::GlobalVariable (*M, array_struct->getType (), true ,
333
333
llvm::GlobalValue::InternalLinkage, array_struct, " .upvalues" );
334
334
// constant->setAlignment(32);
0 commit comments