[LLVMdev] Module->getDataLayout returns std::string instead of DataLayout

Caldarale, Charles R Chuck.Caldarale at unisys.com
Mon Aug 25 05:08:56 PDT 2014


> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Logan Streondj
> Subject: [LLVMdev] Module->getDataLayout returns std::string instead of DataLayout

> the documentation says that TheModule -> getDataLayout should return
> const DataLayout,  but instead it is returning std::string.

No, it says it returns const DataLayout *.

> optimize.cpp:1: 
> static int fpmCreate(Module *TheModule, const DataLayout dataLayout) { 

Your declaration is missing the pointer indication.

 - Chuck





More information about the llvm-dev mailing list