Hi
I found utils/GenLibDeps.pl cann’t run on Windows, so I fix it, made a patch on svn-110435. I submit this patch, hope it can be accepted.
Thanks for your time.
Regards.
utils-GenLibDeps.pl-110435.patch (476 Bytes)
Hi
I found utils/GenLibDeps.pl cann’t run on Windows, so I fix it, made a patch on svn-110435. I submit this patch, hope it can be accepted.
Thanks for your time.
Regards.
utils-GenLibDeps.pl-110435.patch (476 Bytes)
Hello
I found utils/GenLibDeps.pl cann't run on Windows, so I fix it, made a patch
on svn-110435. I submit this patch, hope it can be accepted.
It definitely works for me on windows (not only for me, but for many
others too). Which problems you're seeing?
Hi Anton Korobeynikov,
Windows doesn’t recognize ’ , so I replace it with ".
Regards.
2010/8/6 Anton Korobeynikov <anton@korobeynikov.info>
Hi,
I'm trying to recover the inheritance relations for a class type (so a list of base classes) from a llvm ir file generated via compiling some cpp file using clang.
I have access to the TypeSymbolTable and have found the class type I want to know the base classes for in the table.
How do I go about extracting this (debug) information?
I'm stuck here:
if(StructType* pST=dyn_cast<StructType*>(I)) //check it's a struct (or class)
{
LLVMContext c;
pST->getMetadataTy(c); //get the context
//how do I get the debug info
//how do I enumerate the base classes??
//MDNode *N=c.getMDKindID("dbg");
I spend some time looking at the doxygen docu etc but didn't find a useful hint.
Thx,
Alex
Hi Alexander,
Hi,
I'm trying to recover the inheritance relations for a class type (so a
list of base classes) from a llvm ir file generated via compiling some
cpp file using clang.I have access to the TypeSymbolTable and have found the class type I
want to know the base classes for in the table.
How do I go about extracting this (debug) information?I'm stuck here:
if\(StructType\* pST=dyn\_cast<StructType\*>\(I\)\) //check it's a struct
(or class)
{
LLVMContext c;
pST->getMetadataTy(c); //get the context
I am not sure what this does.
//how do I get the debug info //how do I enumerate the base classes?? //MDNode \*N=c\.getMDKindID\("dbg"\);
getMDKindID() and related APIs are related to instruction location.
I spend some time looking at the doxygen docu etc but didn't find a
useful hint.
There is not any direct way to go from LLVM Type to corresponding
debug info MDNode for the type in LLVM IR.
Use DebugInfoFinder from DebugInfo.h to collect all debug info in a
module and then iterator over types to find the one you want based on
name. Once you have a MDNode for the given type you can use one of the
DIDescriptor wrapper (from DebugInfo.h) to access relevant fields.