mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Method.h no longer includes BasicBlock.h
Method::inst_* is now in llvm/Support/InstIterator.h GraphTraits specializations for BasicBlock and Methods are now in llvm/Support/CFG.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#include "llvm/Transforms/Scalar/ConstantHandling.h"
|
||||
#include "llvm/Method.h"
|
||||
#include "llvm/iMemory.h"
|
||||
#include "llvm/Support/InstIterator.h"
|
||||
#include "../TransformInternals.h"
|
||||
|
||||
static Instruction *CombineBinOp(BinaryOperator *I) {
|
||||
@ -126,7 +127,7 @@ bool InstructionCombining::CombineInstruction(Instruction *I) {
|
||||
|
||||
bool InstructionCombining::doit(Method *M) {
|
||||
// Start the worklist out with all of the instructions in the method in it.
|
||||
std::vector<Instruction*> WorkList(M->inst_begin(), M->inst_end());
|
||||
std::vector<Instruction*> WorkList(inst_begin(M), inst_end(M));
|
||||
|
||||
while (!WorkList.empty()) {
|
||||
Instruction *I = WorkList.back(); // Get an instruction from the worklist
|
||||
|
Reference in New Issue
Block a user