mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 17:33:29 +00:00
Use available typedef for " DenseMap<const Value*, Value*>".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106699 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
29d3dd8a64
commit
774cca70b1
@ -32,7 +32,7 @@ using namespace llvm;
|
|||||||
|
|
||||||
// CloneBasicBlock - See comments in Cloning.h
|
// CloneBasicBlock - See comments in Cloning.h
|
||||||
BasicBlock *llvm::CloneBasicBlock(const BasicBlock *BB,
|
BasicBlock *llvm::CloneBasicBlock(const BasicBlock *BB,
|
||||||
DenseMap<const Value*, Value*> &VMap,
|
ValueToValueMapTy &VMap,
|
||||||
const Twine &NameSuffix, Function *F,
|
const Twine &NameSuffix, Function *F,
|
||||||
ClonedCodeInfo *CodeInfo) {
|
ClonedCodeInfo *CodeInfo) {
|
||||||
BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F);
|
BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F);
|
||||||
@ -72,7 +72,7 @@ BasicBlock *llvm::CloneBasicBlock(const BasicBlock *BB,
|
|||||||
// ArgMap values.
|
// ArgMap values.
|
||||||
//
|
//
|
||||||
void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
||||||
DenseMap<const Value*, Value*> &VMap,
|
ValueToValueMapTy &VMap,
|
||||||
SmallVectorImpl<ReturnInst*> &Returns,
|
SmallVectorImpl<ReturnInst*> &Returns,
|
||||||
const char *NameSuffix, ClonedCodeInfo *CodeInfo) {
|
const char *NameSuffix, ClonedCodeInfo *CodeInfo) {
|
||||||
assert(NameSuffix && "NameSuffix cannot be null!");
|
assert(NameSuffix && "NameSuffix cannot be null!");
|
||||||
@ -138,7 +138,7 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
|||||||
/// the function from their old to new values.
|
/// the function from their old to new values.
|
||||||
///
|
///
|
||||||
Function *llvm::CloneFunction(const Function *F,
|
Function *llvm::CloneFunction(const Function *F,
|
||||||
DenseMap<const Value*, Value*> &VMap,
|
ValueToValueMapTy &VMap,
|
||||||
ClonedCodeInfo *CodeInfo) {
|
ClonedCodeInfo *CodeInfo) {
|
||||||
std::vector<const Type*> ArgTypes;
|
std::vector<const Type*> ArgTypes;
|
||||||
|
|
||||||
@ -179,14 +179,14 @@ namespace {
|
|||||||
struct PruningFunctionCloner {
|
struct PruningFunctionCloner {
|
||||||
Function *NewFunc;
|
Function *NewFunc;
|
||||||
const Function *OldFunc;
|
const Function *OldFunc;
|
||||||
DenseMap<const Value*, Value*> &VMap;
|
ValueToValueMapTy &VMap;
|
||||||
SmallVectorImpl<ReturnInst*> &Returns;
|
SmallVectorImpl<ReturnInst*> &Returns;
|
||||||
const char *NameSuffix;
|
const char *NameSuffix;
|
||||||
ClonedCodeInfo *CodeInfo;
|
ClonedCodeInfo *CodeInfo;
|
||||||
const TargetData *TD;
|
const TargetData *TD;
|
||||||
public:
|
public:
|
||||||
PruningFunctionCloner(Function *newFunc, const Function *oldFunc,
|
PruningFunctionCloner(Function *newFunc, const Function *oldFunc,
|
||||||
DenseMap<const Value*, Value*> &valueMap,
|
ValueToValueMapTy &valueMap,
|
||||||
SmallVectorImpl<ReturnInst*> &returns,
|
SmallVectorImpl<ReturnInst*> &returns,
|
||||||
const char *nameSuffix,
|
const char *nameSuffix,
|
||||||
ClonedCodeInfo *codeInfo,
|
ClonedCodeInfo *codeInfo,
|
||||||
@ -363,7 +363,7 @@ static MDNode *UpdateInlinedAtInfo(MDNode *InsnMD, MDNode *TheCallMD) {
|
|||||||
/// dead. Since this doesn't produce an exact copy of the input, it can't be
|
/// dead. Since this doesn't produce an exact copy of the input, it can't be
|
||||||
/// used for things like CloneFunction or CloneModule.
|
/// used for things like CloneFunction or CloneModule.
|
||||||
void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
||||||
DenseMap<const Value*, Value*> &VMap,
|
ValueToValueMapTy &VMap,
|
||||||
SmallVectorImpl<ReturnInst*> &Returns,
|
SmallVectorImpl<ReturnInst*> &Returns,
|
||||||
const char *NameSuffix,
|
const char *NameSuffix,
|
||||||
ClonedCodeInfo *CodeInfo,
|
ClonedCodeInfo *CodeInfo,
|
||||||
|
@ -28,12 +28,12 @@ using namespace llvm;
|
|||||||
Module *llvm::CloneModule(const Module *M) {
|
Module *llvm::CloneModule(const Module *M) {
|
||||||
// Create the value map that maps things from the old module over to the new
|
// Create the value map that maps things from the old module over to the new
|
||||||
// module.
|
// module.
|
||||||
DenseMap<const Value*, Value*> VMap;
|
ValueToValueMapTy VMap;
|
||||||
return CloneModule(M, VMap);
|
return CloneModule(M, VMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
Module *llvm::CloneModule(const Module *M,
|
Module *llvm::CloneModule(const Module *M,
|
||||||
DenseMap<const Value*, Value*> &VMap) {
|
ValueToValueMapTy &VMap) {
|
||||||
// First off, we need to create the new module...
|
// First off, we need to create the new module...
|
||||||
Module *New = new Module(M->getModuleIdentifier(), M->getContext());
|
Module *New = new Module(M->getModuleIdentifier(), M->getContext());
|
||||||
New->setDataLayout(M->getDataLayout());
|
New->setDataLayout(M->getDataLayout());
|
||||||
|
Loading…
Reference in New Issue
Block a user