<div dir="ltr">On Tue, Jan 29, 2013 at 12:26 AM, Vania Joloboff <span dir="ltr"><<a href="mailto:vania.joloboff@inria.fr" target="_blank" class="cremed">vania.joloboff@inria.fr</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello<br>
<br>
We are migrating from 2.9 to 3.2<br>
<br>
Here is some code that does not compile any more<br>
<br>
    llvm::PassManager *pm;<br>
    llvm::FunctionPassManager *fpm;<br>
<br>
<br>
    module = llvm::ParseBitcodeFile(mb,<u></u>context,&err_str);<br>
    if (!module) {<br>
      error() <<"Failed to load module from bitcode file: " <<err_str <<endl;<br>
      exit(1);<br>
    }<br>
    pm = new PassManager();<br>
    pm->add(<u></u>createAlwaysInlinerPass());<br>
<br>
    fpm = new FunctionPassManager(module);<br>
    fpm->add(new TargetData(module));<br>
    fpm->add(createGVNPass());<br>
    fpm->add(<u></u>createInstructionCombiningPass<u></u>());<br>
    fpm->add(<u></u>createDeadCodeEliminationPass(<u></u>));<br>
    fpm->add(<u></u>createCFGSimplificationPass())<u></u>;<br>
    fpm->add(<u></u>createDeadStoreEliminationPass<u></u>());<br>
<br>
    InitializeNativeTarget();<br>
    atexit(llvm_shutdown);<br>
    EngineBuilder builder(module);<br>
<br>
We have problems because TargetData does not seem to exist anymore.<br>
Where is the documentation describing the changes regarding TargetData<br>
and what we should do now ?<br>
<br>
I did not see anything in 3.0 Release Notes in that regard<br></blockquote><div><br></div><div style>Did you check the other 2 sets of release notes?</div><div style><br></div><div style><a href="https://www.google.com/search?q=llvm+3.2+release+notes+TargetData">https://www.google.com/search?q=llvm+3.2+release+notes+TargetData</a><br>
</div><div style><br></div><div style>Seems to show the relevant section...</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Thanks for your help<span class=""><font color="#888888"><br>
Vania</font></span><div class=""><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank" class="cremed">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank" class="cremed">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank" class="cremed">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div>