summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitdf3c342a4c254870b63709c7268a575a75e2bafc (patch)
tree4fd749cc0f01b7cdb2ace80a8c1bcb6d79eed510 /llvm/lib/Transforms/Utils/CloneModule.cpp
parentfdf788eebdd1545969aa1b61ac95f79511cb0086 (diff)
downloadbcm5719-llvm-df3c342a4c254870b63709c7268a575a75e2bafc.tar.gz
bcm5719-llvm-df3c342a4c254870b63709c7268a575a75e2bafc.zip
Finegrainify namespacification
llvm-svn: 10727
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneModule.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneModule.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneModule.cpp b/llvm/lib/Transforms/Utils/CloneModule.cpp
index 21a8675f07b..f8ee99b3069 100644
--- a/llvm/lib/Transforms/Utils/CloneModule.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud