mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
- Dramatically simplify the Constant::mutateReferences implementation,
allowing it to be called on all constant types (structures/arrays) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -439,12 +439,6 @@ public:
|
||||
static inline bool classof(const Value *V) {
|
||||
return isa<ConstantPointer>(V) && classof(cast<ConstantPointer>(V));
|
||||
}
|
||||
|
||||
// WARNING: Only to be used by Bytecode & Assembly Parsers! USER CODE SHOULD
|
||||
// NOT USE THIS!!
|
||||
// Returns the number of uses of OldV that were replaced.
|
||||
virtual unsigned mutateReferences(Value* OldV, Value *NewV);
|
||||
// END WARNING!!
|
||||
};
|
||||
|
||||
|
||||
@@ -502,14 +496,6 @@ public:
|
||||
static inline bool classof(const Value *V) {
|
||||
return isa<Constant>(V) && classof(cast<Constant>(V));
|
||||
}
|
||||
|
||||
public:
|
||||
// WARNING: Only to be used by Bytecode & Assembly Parsers! USER CODE SHOULD
|
||||
// NOT USE THIS!!
|
||||
// Returns the number of uses of OldV that were replaced.
|
||||
virtual unsigned mutateReferences(Value* OldV, Value *NewV);
|
||||
// END WARNING!!
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user