Displaying 2 results from an estimated 2 matches for "m_tmpstructdi".
2016 Feb 24
0
How to resolve debug info forward types
...OTTA do
this step otherwise you get an assert):
DICompositeType *result = m_DIBuilder->createStructType(
m_DICompileUnit,
name,
file,
loc.m_Line,
sizeOf(actual) * 8, alignOf(actual) * 8,
0, nullptr, elts);
it = m_TmpStructDI.find(name);
if (it != m_TmpStructDI.end()) {
MDNode *node = /* the result from
createReplaceableCompositeType earlier */
llvm::TempMDNode fwd_decl(node);
m_DIBuilder->replaceTemporary(std::move(fwd_decl), result);
You will need to keep a map of outstanding...
2016 Feb 24
3
How to resolve debug info forward types
Before metadata was separated from values, I could create a debug info forward
declaration and eventually resolve it using LLVMReplaceAllUsesWith in core.h.
Now, I can't figure out how to resolve it. I can find no function that seems
to do this. My one wild guess that giving the forward decl and the resolving
decl the same UniqueId might do it is not working.
I am currently using 3.6.1, but