-//===- llvm/Transforms/MutateStructTypes.h - Change struct defns -*- C++ -*--=//
+//===-- llvm/Transforms/MutateStructTypes.h - Rearrange structs -*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
//
// This pass is used to change structure accesses and type definitions in some
// way. It can be used to arbitrarily permute structure fields, safely, without
}
// run - do the transformation
- virtual bool run(Module *M);
+ virtual bool run(Module &M);
protected:
// functions for functions than need to be copied because they have a new
// signature type.
//
- void processGlobals(Module *M);
+ void processGlobals(Module &M);
// transformFunction - This transforms the instructions of the function to use
// the new types.
// removeDeadGlobals - This removes the old versions of functions that are no
// longer needed.
//
- void removeDeadGlobals(Module *M);
+ void removeDeadGlobals(Module &M);
private:
// ConvertType - Convert from the old type system to the new one...