forked from OSchip/llvm-project
Rename SwapStructureContents -> IPO/SimpleStructMutation
Move MutateStructTypes.(cpp|h) -> IPO/MutateStructTypes.(cpp|h) llvm-svn: 1510
This commit is contained in:
parent
2b2a8b1cac
commit
c940c536ab
|
@ -11,7 +11,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Transforms/MutateStructTypes.h"
|
||||
#include "llvm/Transforms/IPO/MutateStructTypes.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/Method.h"
|
||||
#include "llvm/GlobalVariable.h"
|
||||
|
@ -513,4 +513,5 @@ bool MutateStructTypes::run(Module *M) {
|
|||
bind_obj(this, &MutateStructTypes::transformMethod));
|
||||
|
||||
removeDeadGlobals(M);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//===- SwapStructContents.cpp - Swap structure elements around ---*- C++ -*--=//
|
||||
//===- SimpleStructMutation.cpp - Swap structure elements around ---*- C++ -*--=//
|
||||
//
|
||||
// This pass does a simple transformation that swaps all of the elements of the
|
||||
// struct types in the program around.
|
||||
|
@ -6,11 +6,11 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
|
||||
#include "llvm/Transforms/SwapStructContents.h"
|
||||
#include "llvm/Transforms/MutateStructTypes.h"
|
||||
#include "llvm/Transforms/IPO/SimpleStructMutation.h"
|
||||
#include "llvm/Transforms/IPO/MutateStructTypes.h"
|
||||
#include "llvm/Analysis/FindUsedTypes.h"
|
||||
#include "llvm/Analysis/FindUnsafePointerTypes.h"
|
||||
#include "TransformInternals.h"
|
||||
#include "../TransformInternals.h"
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
using std::vector;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "llvm/Transforms/ConstantMerge.h"
|
||||
#include "llvm/Transforms/CleanupGCCOutput.h"
|
||||
#include "llvm/Transforms/LevelChange.h"
|
||||
#include "llvm/Transforms/SwapStructContents.h"
|
||||
#include "llvm/Transforms/IPO/SimpleStructMutation.h"
|
||||
#include "llvm/Transforms/IPO/GlobalDCE.h"
|
||||
#include "llvm/Transforms/Scalar/IndVarSimplify.h"
|
||||
#include "llvm/Transforms/Scalar/InstructionCombining.h"
|
||||
|
|
Loading…
Reference in New Issue