[llvm-commits] [bug_122] CVS: llvm/include/llvm/Transforms/MutateStructTypes.h
LLVM
llvm at cs.uiuc.edu
Wed May 12 11:33:27 PDT 2004
Changes in directory llvm/include/llvm/Transforms:
MutateStructTypes.h updated: 1.12 -> 1.12.8.1
---
Log message:
Change SymbolTable to not subclass from std::map but to embed one instead
and cleanup use of SymbolTable in rest of LLVM. Also, add some new methods
to SymbolTable for small/utility cases and substitute calls to them in
LLVM.
---
Diffs of the changes: (+8 -0)
Index: llvm/include/llvm/Transforms/MutateStructTypes.h
diff -u llvm/include/llvm/Transforms/MutateStructTypes.h:1.12 llvm/include/llvm/Transforms/MutateStructTypes.h:1.12.8.1
--- llvm/include/llvm/Transforms/MutateStructTypes.h:1.12 Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Transforms/MutateStructTypes.h Wed May 12 11:33:43 2004
@@ -111,6 +111,14 @@
//
void AdjustIndices(const CompositeType *OldTy, std::vector<Value*> &Idx,
unsigned idx = 0);
+
+ /// A functor for replacement of Types used by processGlobals
+ struct ProcessGlobalsFunctor {
+ MutateStructTypes* mst;
+ Value* MutateStructTypes::ProcessGlobalsFunctor::operator()(
+ const Type* Ty, const std::string& Name, const Value* Val);
+ };
+
};
} // End llvm namespace
More information about the llvm-commits
mailing list