Be more consistent in using ValueToValueMapTy.
[oota-llvm.git] / include / llvm / Transforms / Utils / ValueMapper.h
1 //===- ValueMapper.h - Remapping for constants and metadata -----*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the MapValue interface which is used by various parts of
11 // the Transforms/Utils library to implement cloning and linking facilities.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_TRANSFORMS_UTILS_VALUEMAPPER_H
16 #define LLVM_TRANSFORMS_UTILS_VALUEMAPPER_H
17
18 #include "llvm/ADT/ValueMap.h"
19
20 namespace llvm {
21   class Value;
22   class Instruction;
23   typedef ValueMap<const Value *, Value *> ValueToValueMapTy;
24
25   Value *MapValue(const Value *V, ValueToValueMapTy &VM,
26                   bool ModuleLevelChanges);
27   void RemapInstruction(Instruction *I, ValueToValueMapTy &VM,
28                         bool ModuleLevelChanges);
29 } // End llvm namespace
30
31 #endif