[dragonegg] r217562 - Backend.cpp: Update DataLayoutPass corresponding to LLVM r217548.
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Sep 12 09:23:52 PDT 2014
Thanks!
On 10 September 2014 19:34, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
> Author: chapuni
> Date: Wed Sep 10 18:34:13 2014
> New Revision: 217562
>
> URL: http://llvm.org/viewvc/llvm-project?rev=217562&view=rev
> Log:
> Backend.cpp: Update DataLayoutPass corresponding to LLVM r217548.
>
> In dragonegg, TheModule always has its DataLayout. No need to give DataLayout(or Module) to DataLayoutPass.
>
> Modified:
> dragonegg/trunk/src/Backend.cpp
>
> Modified: dragonegg/trunk/src/Backend.cpp
> URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=217562&r1=217561&r2=217562&view=diff
> ==============================================================================
> --- dragonegg/trunk/src/Backend.cpp (original)
> +++ dragonegg/trunk/src/Backend.cpp Wed Sep 10 18:34:13 2014
> @@ -694,7 +694,7 @@ static void createPerFunctionOptimizatio
> // Create and set up the per-function pass manager.
> // FIXME: Move the code generator to be function-at-a-time.
> PerFunctionPasses = new FunctionPassManager(TheModule);
> - PerFunctionPasses->add(new DataLayoutPass(TheModule));
> + PerFunctionPasses->add(new DataLayoutPass());
> TheTarget->addAnalysisPasses(*PerFunctionPasses);
>
> #ifndef NDEBUG
> @@ -740,7 +740,7 @@ static void createPerModuleOptimizationP
> return;
>
> PerModulePasses = new PassManager();
> - PerModulePasses->add(new DataLayoutPass(TheModule));
> + PerModulePasses->add(new DataLayoutPass());
> TheTarget->addAnalysisPasses(*PerModulePasses);
>
> Pass *InliningPass;
> @@ -784,8 +784,7 @@ static void createPerModuleOptimizationP
> // this for fast -O0 compiles!
> if (PerModulePasses || 1) {
> PassManager *PM = CodeGenPasses = new PassManager();
> - PM->add(
> - new DataLayoutPass(*TheTarget->getSubtargetImpl()->getDataLayout()));
> + PM->add(new DataLayoutPass());
> TheTarget->addAnalysisPasses(*PM);
>
> // Request that addPassesToEmitFile run the Verifier after running
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list