mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Chris seems fond of #include <vector>. Fix these. Also convert use list in
Value to a vector instead of a list. Move SchedGraph.h & SchedPriorities.h into lib/CodeGen/InstrScheduling git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@572 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#ifndef LLVM_VALUE_H
|
||||
#define LLVM_VALUE_H
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include "llvm/Annotation.h"
|
||||
#include "llvm/AbstractTypeUser.h"
|
||||
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
};
|
||||
|
||||
private:
|
||||
list<User *> Uses;
|
||||
vector<User *> Uses;
|
||||
string Name;
|
||||
PATypeHandle<Type> Ty;
|
||||
ValueTy VTy;
|
||||
@@ -130,10 +130,10 @@ public:
|
||||
virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy);
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Methods for handling the list of uses of this DEF.
|
||||
// Methods for handling the vector of uses of this Value.
|
||||
//
|
||||
typedef list<User*>::iterator use_iterator;
|
||||
typedef list<User*>::const_iterator use_const_iterator;
|
||||
typedef vector<User*>::iterator use_iterator;
|
||||
typedef vector<User*>::const_iterator use_const_iterator;
|
||||
|
||||
inline unsigned use_size() const { return Uses.size(); }
|
||||
inline bool use_empty() const { return Uses.empty(); }
|
||||
|
||||
Reference in New Issue
Block a user