mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Pull iterators out of CFG.h and CFGdecls and put them in Support directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@664 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
#include "llvm/Instruction.h"
|
||||
#include <map>
|
||||
#include <utility>
|
||||
#include <list>
|
||||
|
||||
// Enable to trace to figure out what the heck is going on when parsing fails
|
||||
#define TRACE_LEVEL 0
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/SymbolTable.h"
|
||||
#include "llvm/Support/STLExtras.h"
|
||||
#include "llvm/CFG.h"
|
||||
#include "llvm/Support/DepthFirstIterator.h"
|
||||
#include <algorithm>
|
||||
|
||||
#if 0
|
||||
@ -264,8 +264,8 @@ int SlotCalculator::insertVal(const Value *D, bool dontIgnore = false) {
|
||||
// the type itself is. This also assures us that we will not hit infinite
|
||||
// recursion on recursive types...
|
||||
//
|
||||
for (cfg::tdf_iterator I = cfg::tdf_begin(TheTy, true),
|
||||
E = cfg::tdf_end(TheTy); I != E; ++I)
|
||||
for (df_iterator<const Type*> I = df_begin(TheTy, true),
|
||||
E = df_end(TheTy); I != E; ++I)
|
||||
if (*I != TheTy) {
|
||||
// If we haven't seen this sub type before, add it to our type table!
|
||||
const Type *SubTy = *I;
|
||||
|
Reference in New Issue
Block a user