Displaying 5 results from an estimated 5 matches for "createexpression".
2018 Mar 22
2
Question about debug information for global variables
...ops.push_back(llvm::dwarf::DW_OP_deref);
// Add a constant offset to the value of the global variable.
ops.push_back(llvm::dwarf::DW_OP_constu);
ops.push_back(offset);
ops.push_back(llvm::dwarf::DW_OP_plus);
llvm::DIExpression *DIexpr{nullptr};
auto *DIE = DIBuilder_->createExpression(ops);
auto *GVE = DIBuilder_->createGlobalVariableExpression(
cu, name, "", file, 0, type,
/* isLocalToUnit */ false, DIE);
// Add GVE as debug info to BaseAddress.
baseAddress->addDebugInfo(GVE);
I guess I'm doing something wrong, but I cannot see w...
2018 Mar 22
0
Question about debug information for global variables
...dwarf::DW_OP_deref);
> // Add a constant offset to the value of the global variable.
> ops.push_back(llvm::dwarf::DW_OP_constu);
> ops.push_back(offset);
> ops.push_back(llvm::dwarf::DW_OP_plus);
> llvm::DIExpression *DIexpr{nullptr};
> auto *DIE = DIBuilder_->createExpression(ops);
> auto *GVE = DIBuilder_->createGlobalVariableExpression(
> cu, name, "", file, 0, type,
> /* isLocalToUnit */ false, DIE);
> // Add GVE as debug info to BaseAddress.
> baseAddress->addDebugInfo(GVE);
>
> I guess I'm doing somet...
2018 Mar 22
2
Question about debug information for global variables
...;> // Add a constant offset to the value of the global variable.
>> ops.push_back(llvm::dwarf::DW_OP_constu);
>> ops.push_back(offset);
>> ops.push_back(llvm::dwarf::DW_OP_plus);
>> llvm::DIExpression *DIexpr{nullptr};
>> auto *DIE = DIBuilder_->createExpression(ops);
>> auto *GVE = DIBuilder_->createGlobalVariableExpression(
>> cu, name, "", file, 0, type,
>> /* isLocalToUnit */ false, DIE);
>> // Add GVE as debug info to BaseAddress.
>> baseAddress->addDebugInfo(GVE);
>>
>>...
2018 Mar 22
0
Question about debug information for global variables
...a constant offset to the value of the global variable.
>>> ops.push_back(llvm::dwarf::DW_OP_constu);
>>> ops.push_back(offset);
>>> ops.push_back(llvm::dwarf::DW_OP_plus);
>>> llvm::DIExpression *DIexpr{nullptr};
>>> auto *DIE = DIBuilder_->createExpression(ops);
>>> auto *GVE = DIBuilder_->createGlobalVariableExpression(
>>> cu, name, "", file, 0, type,
>>> /* isLocalToUnit */ false, DIE);
>>> // Add GVE as debug info to BaseAddress.
>>> baseAddress->addDebugInfo(GVE);
>...
2018 Mar 23
2
Question about debug information for global variables
...o the value of the global variable.
>>>> ops.push_back(llvm::dwarf::DW_OP_constu);
>>>> ops.push_back(offset);
>>>> ops.push_back(llvm::dwarf::DW_OP_plus);
>>>> llvm::DIExpression *DIexpr{nullptr};
>>>> auto *DIE = DIBuilder_->createExpression(ops);
>>>> auto *GVE = DIBuilder_->createGlobalVariableExpression(
>>>> cu, name, "", file, 0, type,
>>>> /* isLocalToUnit */ false, DIE);
>>>> // Add GVE as debug info to BaseAddress.
>>>> baseAddress->ad...