aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/ConstantRange.cpp5
-rw-r--r--lib/VMCore/LeakDetector.cpp5
-rw-r--r--lib/VMCore/Mangler.cpp5
3 files changed, 3 insertions, 12 deletions
diff --git a/lib/VMCore/ConstantRange.cpp b/lib/VMCore/ConstantRange.cpp
index e180f12a1a..7b45d20b53 100644
--- a/lib/VMCore/ConstantRange.cpp
+++ b/lib/VMCore/ConstantRange.cpp
@@ -25,8 +25,7 @@
#include "llvm/Type.h"
#include "llvm/Instruction.h"
#include "llvm/ConstantHandling.h"
-
-namespace llvm {
+using namespace llvm;
/// Initialize a full (the default) or empty set for the specified type.
///
@@ -250,5 +249,3 @@ void ConstantRange::print(std::ostream &OS) const {
void ConstantRange::dump() const {
print(std::cerr);
}
-
-} // End llvm namespace
diff --git a/lib/VMCore/LeakDetector.cpp b/lib/VMCore/LeakDetector.cpp
index ffb081a998..f0cb6cc1c5 100644
--- a/lib/VMCore/LeakDetector.cpp
+++ b/lib/VMCore/LeakDetector.cpp
@@ -14,8 +14,7 @@
#include "Support/LeakDetector.h"
#include "llvm/Value.h"
#include <set>
-
-namespace llvm {
+using namespace llvm;
// Lazily allocate set so that release build doesn't have to do anything.
static std::set<const void*> *Objects = 0;
@@ -89,5 +88,3 @@ void LeakDetector::checkForGarbageImpl(const std::string &Message) {
Objects = 0; LLVMObjects = 0;
}
}
-
-} // End llvm namespace
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp
index 567fe05e32..699ecd1a65 100644
--- a/lib/VMCore/Mangler.cpp
+++ b/lib/VMCore/Mangler.cpp
@@ -15,8 +15,7 @@
#include "llvm/Module.h"
#include "llvm/Type.h"
#include "Support/StringExtras.h"
-
-namespace llvm {
+using namespace llvm;
static char HexDigit(int V) {
return V < 10 ? V+'0' : V+'A'-10;
@@ -100,5 +99,3 @@ Mangler::Mangler(Module &m, bool addUnderscorePrefix)
else
FoundNames.insert(I->getName()); // Otherwise, keep track of name
}
-
-} // End llvm namespace