Displaying 2 results from an estimated 2 matches for "labeltracker".
2019 Jan 29
2
[cfe-dev] Create a BlockAddress array from LLVM Pass
...t; GlobalVariable *gvar_ptr_abc = new GlobalVariable(
>
> /*Module=*/*fn->getParent(),
>
> /*Type=*/PointerTy,
>
> /*isConstant=*/false,
>
> /*Linkage=*/GlobalValue::InternalLinkage,
>
> /*Initializer=*/0, // has initializer, specified below
>
> /*Name=*/"labelTracker");
>
> gvar_ptr_abc->setAlignment(16);
>
> Constant *blockItems = ConstantDataArray::get(fn->getContext(), tmp);
>
> gvar_ptr_abc->setInitializer(blockItems);
>
> I get error with following: Unsupported type in Type::getScalarTy
>
>
>
> Can anyone s...
2019 Jan 28
2
Create a BlockAddress array from LLVM Pass
...Address *bba = BlockAddress::get(fn, bb);
tmp.push_back(bba);
GlobalVariable *gvar_ptr_abc = new GlobalVariable(
/*Module=*/*fn->getParent(),
/*Type=*/PointerTy,
/*isConstant=*/false,
/*Linkage=*/GlobalValue::InternalLinkage,
/*Initializer=*/0, // has initializer, specified below
/*Name=*/"labelTracker");
gvar_ptr_abc->setAlignment(16);
Constant *blockItems = ConstantDataArray::get(fn->getContext(), tmp);
gvar_ptr_abc->setInitializer(blockItems);
I get error with following: Unsupported type in Type::getScalarTy
Can anyone suggest what I suppose to do? It is definitely related to my...