mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-07 08:24:27 +00:00
Remove the LLVMContext& arguments from *Folder constructors, as they don't seem to be used anywhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128793 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -22,12 +22,10 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
class LLVMContext;
|
|
||||||
|
|
||||||
/// ConstantFolder - Create constants with minimum, target independent, folding.
|
/// ConstantFolder - Create constants with minimum, target independent, folding.
|
||||||
class ConstantFolder {
|
class ConstantFolder {
|
||||||
public:
|
public:
|
||||||
explicit ConstantFolder(LLVMContext &) {}
|
explicit ConstantFolder() {}
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Binary Operators
|
// Binary Operators
|
||||||
|
@ -301,7 +301,7 @@ public:
|
|||||||
: IRBuilderBase(C), Inserter(I), Folder(F) {
|
: IRBuilderBase(C), Inserter(I), Folder(F) {
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit IRBuilder(LLVMContext &C) : IRBuilderBase(C), Folder(C) {
|
explicit IRBuilder(LLVMContext &C) : IRBuilderBase(C), Folder() {
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit IRBuilder(BasicBlock *TheBB, const T &F)
|
explicit IRBuilder(BasicBlock *TheBB, const T &F)
|
||||||
@ -310,12 +310,12 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
explicit IRBuilder(BasicBlock *TheBB)
|
explicit IRBuilder(BasicBlock *TheBB)
|
||||||
: IRBuilderBase(TheBB->getContext()), Folder(Context) {
|
: IRBuilderBase(TheBB->getContext()), Folder() {
|
||||||
SetInsertPoint(TheBB);
|
SetInsertPoint(TheBB);
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit IRBuilder(Instruction *IP)
|
explicit IRBuilder(Instruction *IP)
|
||||||
: IRBuilderBase(IP->getContext()), Folder(Context) {
|
: IRBuilderBase(IP->getContext()), Folder() {
|
||||||
SetInsertPoint(IP);
|
SetInsertPoint(IP);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -325,7 +325,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
IRBuilder(BasicBlock *TheBB, BasicBlock::iterator IP)
|
IRBuilder(BasicBlock *TheBB, BasicBlock::iterator IP)
|
||||||
: IRBuilderBase(TheBB->getContext()), Folder(Context) {
|
: IRBuilderBase(TheBB->getContext()), Folder() {
|
||||||
SetInsertPoint(TheBB, IP);
|
SetInsertPoint(TheBB, IP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,12 +27,10 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
class LLVMContext;
|
|
||||||
|
|
||||||
/// NoFolder - Create "constants" (actually, instructions) with no folding.
|
/// NoFolder - Create "constants" (actually, instructions) with no folding.
|
||||||
class NoFolder {
|
class NoFolder {
|
||||||
public:
|
public:
|
||||||
explicit NoFolder(LLVMContext &) {}
|
explicit NoFolder() {}
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Binary Operators
|
// Binary Operators
|
||||||
|
Reference in New Issue
Block a user