aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/CloneModule.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
commitf7703df4968084c18c248c1feea9961c19a32e6a (patch)
tree5a3e4830177c09d61c4bf51e8d6ef6338d172196 /lib/Transforms/Utils/CloneModule.cpp
parent21949d90881e89ab9c7b752f82f51577a1f0c095 (diff)
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/CloneModule.cpp')
-rw-r--r--lib/Transforms/Utils/CloneModule.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Transforms/Utils/CloneModule.cpp b/lib/Transforms/Utils/CloneModule.cpp
index 21a8675f07..f8ee99b306 100644
--- a/lib/Transforms/Utils/CloneModule.cpp
+++ b/lib/Transforms/Utils/CloneModule.cpp
@@ -18,15 +18,14 @@
#include "llvm/SymbolTable.h"
#include "llvm/Constant.h"
#include "ValueMapper.h"
-
-namespace llvm {
+using namespace llvm;
/// CloneModule - Return an exact copy of the specified module. This is not as
/// easy as it might seem because we have to worry about making copies of global
/// variables and functions, and making their (initializers and references,
/// respectively) refer to the right globals.
///
-Module *CloneModule(const Module *M) {
+Module *llvm::CloneModule(const Module *M) {
// First off, we need to create the new module...
Module *New = new Module(M->getModuleIdentifier());
New->setEndianness(M->getEndianness());
@@ -90,5 +89,3 @@ Module *CloneModule(const Module *M) {
return New;
}
-
-} // End llvm namespace