summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/ValueMapper.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-09 06:12:26 +0000
committerChris Lattner <sabre@nondot.org>2004-01-09 06:12:26 +0000
commitdf3c342a4c254870b63709c7268a575a75e2bafc (patch)
tree4fd749cc0f01b7cdb2ace80a8c1bcb6d79eed510 /llvm/lib/Transforms/Utils/ValueMapper.cpp
parentfdf788eebdd1545969aa1b61ac95f79511cb0086 (diff)
downloadbcm5719-llvm-df3c342a4c254870b63709c7268a575a75e2bafc.tar.gz
bcm5719-llvm-df3c342a4c254870b63709c7268a575a75e2bafc.zip
Finegrainify namespacification
llvm-svn: 10727
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/ValueMapper.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp
index 248ebace7a5..40dd58a1461 100644
--- a/llvm/lib/Transforms/Utils/ValueMapper.cpp
+++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp
@@ -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
OpenPOWER on IntegriCloud