search for: getstructnamesize

Displaying 1 result from an estimated 1 matches for "getstructnamesize".

2016 Mar 28
2
llvm extract struct elements and struct size in C++
...= 0; i < I.getNumOperands(); i++) std::cerr << I.getOperand(i)->getName().data() << std::endl; } } return true; } private: Module *M; Function *F; BasicBlock *B; }; } char StructModulePass:: ID = 0; static RegisterPass<StructModulePass> X("getstructnamesize", "Get All Struct Names and Sizes", false /* Only looks at CFG */ , false /* Analysis Pass */); I want to create a database of all structures (global and local) defined and being used in my program. Eg. < A , <int32, in...