mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Change references to the Method class to be references to the Function
class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2144 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
#include "llvm/iMemory.h"
|
||||
#include "llvm/iOther.h"
|
||||
#include "llvm/BasicBlock.h"
|
||||
#include "llvm/Method.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/Pass.h"
|
||||
|
||||
|
||||
@@ -149,12 +149,12 @@ decomposeArrayRef(BasicBlock::iterator& BBI)
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
static bool
|
||||
doDecomposeMultiDimRefs(Method *M)
|
||||
doDecomposeMultiDimRefs(Function *F)
|
||||
{
|
||||
bool changed = false;
|
||||
|
||||
for (Method::iterator BI = M->begin(), BE = M->end(); BI != BE; ++BI)
|
||||
for (BasicBlock::iterator newI, II=(*BI)->begin();
|
||||
for (Method::iterator BI = F->begin(), BE = F->end(); BI != BE; ++BI)
|
||||
for (BasicBlock::iterator newI, II = (*BI)->begin();
|
||||
II != (*BI)->end(); II = ++newI)
|
||||
{
|
||||
newI = II;
|
||||
@@ -172,7 +172,7 @@ doDecomposeMultiDimRefs(Method *M)
|
||||
|
||||
namespace {
|
||||
struct DecomposeMultiDimRefsPass : public MethodPass {
|
||||
virtual bool runOnMethod(Method *M) { return doDecomposeMultiDimRefs(M); }
|
||||
virtual bool runOnMethod(Function *F) { return doDecomposeMultiDimRefs(F); }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user