Finegrainify namespacification

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-01-09 06:12:26 +00:00
parent 21949d9088
commit f7703df496
17 changed files with 57 additions and 103 deletions

View File

@ -15,10 +15,9 @@
#include "ValueMapper.h"
#include "llvm/Constants.h"
#include "llvm/Instruction.h"
using namespace llvm;
namespace llvm {
Value *MapValue(const Value *V, std::map<const Value*, Value*> &VM) {
Value *llvm::MapValue(const Value *V, std::map<const Value*, Value*> &VM) {
Value *&VMSlot = VM[V];
if (VMSlot) return VMSlot; // Does it exist in the map yet?
@ -106,5 +105,3 @@ Value *MapValue(const Value *V, std::map<const Value*, Value*> &VM) {
assert(0 && "Unknown value type: why didn't it get resolved?!");
return 0;
}
} // End llvm namespace