mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +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:
@ -1,6 +1,6 @@
|
||||
//===-- Value.cpp - Implement the Value class -----------------------------===//
|
||||
//
|
||||
// This file implements the Value class.
|
||||
// This file implements the Value, User, and SymTabValue classes.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
@ -44,7 +44,7 @@ void Value::replaceAllUsesWith(Value *D) {
|
||||
assert(D && "Value::replaceAllUsesWith(<null>) is invalid!");
|
||||
assert(D != this && "V->replaceAllUsesWith(V) is NOT valid!");
|
||||
while (!Uses.empty()) {
|
||||
User *Use = Uses.front();
|
||||
User *Use = Uses.back();
|
||||
#ifndef NDEBUG
|
||||
unsigned NumUses = Uses.size();
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user