[LLVMdev] Data Structure Analysis

Wojciech Matyjewicz wmatyjewicz at fastmail.fm
Thu Aug 23 18:14:45 PDT 2007


Hi!

Haifeng He wrote:
> okay. I guess I figured it out. It seems "poolalloc" needs to be put
> in llvm/projects/ directory.

Yes, it will compile then. However, it seems the resulting shared
library LLVMDataStructure.so (I haven't checked the others) has some
undefined symbols. Trying to load it into the opt tool produces an error:

undefined symbol:
_ZN48_GLOBAL__N_DataStructureAA.cpp_00000000_8D4221C44DSAA2IDE

Static ID fields in pass classes seem to be lacking definitions (there
were some changes in LLVM core classes and poolalloc hasn't been yet
fully updated to reflect them). The attached patch fixes this for DSA
classes - LLVMDataStructure.so loads into opt and DSA can be performed.

Wojtek

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: poolalloc.patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070824/26ffae25/attachment.ksh>


More information about the llvm-dev mailing list