- 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:
Chris Lattner
2002-10-14 03:30:23 +00:00
parent 9e932bd566
commit 34048e2ace
4 changed files with 23 additions and 38 deletions

View File

@@ -59,7 +59,8 @@ private:
SymbolTable *SymTab;
// Accessor for the underlying GlobalValRefMap... only through the
// ConstantPointerRef class...
// Constant class...
friend class Constant;
friend class ConstantPointerRef;
void mutateConstantPointerRef(GlobalValue *OldGV, GlobalValue *NewGV);
ConstantPointerRef *getConstantPointerRef(GlobalValue *GV);