[LLVMdev] Running a Local Buildbot

Chandler Carruth chandlerc at google.com
Tue Jan 29 00:34:10 PST 2013


On Tue, Jan 29, 2013 at 12:26 AM, Vania Joloboff <vania.joloboff at inria.fr>wrote:

> Hello
>
> We are migrating from 2.9 to 3.2
>
> Here is some code that does not compile any more
>
>     llvm::PassManager *pm;
>     llvm::FunctionPassManager *fpm;
>
>
>     module = llvm::ParseBitcodeFile(mb,**context,&err_str);
>     if (!module) {
>       error() <<"Failed to load module from bitcode file: " <<err_str
> <<endl;
>       exit(1);
>     }
>     pm = new PassManager();
>     pm->add(**createAlwaysInlinerPass());
>
>     fpm = new FunctionPassManager(module);
>     fpm->add(new TargetData(module));
>     fpm->add(createGVNPass());
>     fpm->add(**createInstructionCombiningPass**());
>     fpm->add(**createDeadCodeEliminationPass(**));
>     fpm->add(**createCFGSimplificationPass())**;
>     fpm->add(**createDeadStoreEliminationPass**());
>
>     InitializeNativeTarget();
>     atexit(llvm_shutdown);
>     EngineBuilder builder(module);
>
> We have problems because TargetData does not seem to exist anymore.
> Where is the documentation describing the changes regarding TargetData
> and what we should do now ?
>
> I did not see anything in 3.0 Release Notes in that regard
>

Did you check the other 2 sets of release notes?

https://www.google.com/search?q=llvm+3.2+release+notes+TargetData

Seems to show the relevant section...


>
> Thanks for your help
> Vania
>
>
>
> ______________________________**_________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/**mailman/listinfo/llvmdev<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130129/88a5e245/attachment.html>


More information about the llvm-dev mailing list