mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 18:31:23 +00:00
remove some more Context arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7b550ccfc5
commit
f55eeb918e
@ -38,8 +38,7 @@ namespace llvm {
|
|||||||
friend struct SCEVVisitor<SCEVExpander, Value*>;
|
friend struct SCEVVisitor<SCEVExpander, Value*>;
|
||||||
public:
|
public:
|
||||||
explicit SCEVExpander(ScalarEvolution &se)
|
explicit SCEVExpander(ScalarEvolution &se)
|
||||||
: SE(se), Builder(se.getContext(),
|
: SE(se), Builder(se.getContext(), TargetFolder(se.TD)) {}
|
||||||
TargetFolder(se.TD, se.getContext())) {}
|
|
||||||
|
|
||||||
/// clear - Erase the contents of the InsertedExpressions map so that users
|
/// clear - Erase the contents of the InsertedExpressions map so that users
|
||||||
/// trying to expand the same expression into multiple BasicBlocks or
|
/// trying to expand the same expression into multiple BasicBlocks or
|
||||||
|
@ -40,8 +40,7 @@ class TargetFolder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit TargetFolder(const TargetData *TheTD, LLVMContext &C) :
|
explicit TargetFolder(const TargetData *TheTD) : TD(TheTD) {}
|
||||||
TD(TheTD) {}
|
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Binary Operators
|
// Binary Operators
|
||||||
|
@ -13064,7 +13064,7 @@ bool InstCombiner::runOnFunction(Function &F) {
|
|||||||
/// Builder - This is an IRBuilder that automatically inserts new
|
/// Builder - This is an IRBuilder that automatically inserts new
|
||||||
/// instructions into the worklist when they are created.
|
/// instructions into the worklist when they are created.
|
||||||
IRBuilder<true, TargetFolder, InstCombineIRInserter>
|
IRBuilder<true, TargetFolder, InstCombineIRInserter>
|
||||||
TheBuilder(F.getContext(), TargetFolder(TD, F.getContext()),
|
TheBuilder(F.getContext(), TargetFolder(TD),
|
||||||
InstCombineIRInserter(Worklist));
|
InstCombineIRInserter(Worklist));
|
||||||
Builder = &TheBuilder;
|
Builder = &TheBuilder;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user