From 0b12b5f50ec77a8bd01b92d287c52d748619bb4b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 25 Jun 2002 16:13:21 +0000 Subject: MEGAPATCH checkin. For details, See: docs/2002-06-25-MegaPatchInfo.txt git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2778 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/SimpleStructMutation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Transforms/IPO/SimpleStructMutation.cpp') diff --git a/lib/Transforms/IPO/SimpleStructMutation.cpp b/lib/Transforms/IPO/SimpleStructMutation.cpp index 908b5b1030..7f18f31e9b 100644 --- a/lib/Transforms/IPO/SimpleStructMutation.cpp +++ b/lib/Transforms/IPO/SimpleStructMutation.cpp @@ -32,7 +32,7 @@ namespace { const char *getPassName() const { return "Simple Struct Mutation"; } - virtual bool run(Module *M) { + virtual bool run(Module &M) { setTransforms(getTransforms(M, CurrentXForm)); bool Changed = MutateStructTypes::run(M); clearTransforms(); @@ -49,7 +49,7 @@ namespace { } private: - TransformsType getTransforms(Module *M, enum Transform); + TransformsType getTransforms(Module &M, enum Transform); }; } // end anonymous namespace @@ -124,7 +124,7 @@ static inline void GetTransformation(const StructType *ST, SimpleStructMutation::TransformsType - SimpleStructMutation::getTransforms(Module *M, enum Transform XForm) { + SimpleStructMutation::getTransforms(Module &, enum Transform XForm) { // We need to know which types to modify, and which types we CAN'T modify // TODO: Do symbol tables as well -- cgit v1.2.3