[LLVMdev] llvm-poolalloc compilation failed

Chris Lattner sabre at nondot.org
Tue Jan 23 20:53:58 PST 2007


On Tue, 23 Jan 2007, Ryan M. Lefever wrote:
> I tried to compile the currently checked in version of llvm-poolalloc
> with the curently checked in version of llvm and got the following errors:
>
> llvm[4]: Compiling Heuristic.cpp for Debug build  (PIC)
> Heuristic.cpp: In function 'bool Wants8ByteAlignment(const llvm::Type*,
> unsigned int, const llvm::TargetData&)':
> Heuristic.cpp:77: error: 'const class llvm::TargetData' has no member
> named 'getTypeAlignment'

The getTypeAlignment method was renamed to getTypeAlignmentABI, it should 
be safe to make that substitution.

-Chris

> There seem to be 3 methods in TargetData that are close to
> getTypeAlignment(): getTypeAlignmentABI (), getTypeAlignmentPref (),
> getTypeAlignmentShift ().  Does anyone working on llvm-poolalloc know
> what method should be used.
>
> Thanks,
> Ryan
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list