X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FTransforms%2FMutateStructTypes.h;h=f9b753caf44b39cb949252bbe270c68d3640af47;hb=6fbcc26f1460eaee4e0eb8b426fc1ff0c7af11be;hp=e1fbeda2d4cf8b98b038c84ab6eb4f1f0863b6d2;hpb=f57b845547302d24ecb6a9e79d7bc386f761a6c9;p=oota-llvm.git diff --git a/include/llvm/Transforms/MutateStructTypes.h b/include/llvm/Transforms/MutateStructTypes.h index e1fbeda2d4c..f9b753caf44 100644 --- a/include/llvm/Transforms/MutateStructTypes.h +++ b/include/llvm/Transforms/MutateStructTypes.h @@ -1,4 +1,11 @@ -//===- 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 @@ -58,7 +65,7 @@ public: } // run - do the transformation - virtual bool run(Module *M); + virtual bool run(Module &M); protected: @@ -76,7 +83,7 @@ private: // 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. @@ -86,7 +93,7 @@ private: // 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...