X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FAnalysis%2FScalarEvolutionExpander.h;h=9266bf9713c8dcc853ff010b6b107a4f4c3e19cb;hb=104cf9e02b0ed94d4173869a598af6c6972a8660;hp=e3ff5b4690cc66f25dbc26f3f4c204f1d92b2ca2;hpb=45524c58fd5f77b6a3f6e77d43fba85b36ec0b08;p=oota-llvm.git diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index e3ff5b4690c..9266bf9713c 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -17,6 +17,7 @@ #include "llvm/Analysis/ScalarEvolutionExpressions.h" #include "llvm/Support/IRBuilder.h" #include "llvm/Support/TargetFolder.h" +#include namespace llvm { /// SCEVExpander - This class uses information about analyze scalars to @@ -37,8 +38,8 @@ namespace llvm { friend struct SCEVVisitor; public: explicit SCEVExpander(ScalarEvolution &se) - : SE(se), Builder(*se.getContext(), - TargetFolder(se.TD, *se.getContext())) {} + : SE(se), Builder(se.getContext(), + TargetFolder(se.TD, se.getContext())) {} /// clear - Erase the contents of the InsertedExpressions map so that users /// trying to expand the same expression into multiple BasicBlocks or @@ -60,7 +61,7 @@ namespace llvm { } private: - LLVMContext *getContext() const { return SE.getContext(); } + LLVMContext &getContext() const { return SE.getContext(); } /// InsertBinop - Insert the specified binary operator, doing a small amount /// of work to avoid inserting an obviously redundant operation.