diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-15 17:08:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-15 17:08:50 +0000 |
commit | b35798347ea87b8b6d36155b211016a7769f01ab (patch) | |
tree | bdf2ae210bf2fd57d31bf92e1a3d89a631ab3d58 /lib/VMCore | |
parent | 098406b42ca7cd05745215020ae5ed82194b7c0a (diff) | |
download | external_llvm-b35798347ea87b8b6d36155b211016a7769f01ab.tar.gz external_llvm-b35798347ea87b8b6d36155b211016a7769f01ab.tar.bz2 external_llvm-b35798347ea87b8b6d36155b211016a7769f01ab.zip |
Fix a bunch of namespace polution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Dominators.cpp | 4 | ||||
-rw-r--r-- | lib/VMCore/LLVMContextImpl.cpp | 1 | ||||
-rw-r--r-- | lib/VMCore/LeaksContext.h | 5 |
3 files changed, 7 insertions, 3 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index b014e69ee8..10a866fab6 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -30,9 +30,9 @@ using namespace llvm; // Always verify dominfo if expensive checking is enabled. #ifdef XDEBUG -bool VerifyDomInfo = true; +static bool VerifyDomInfo = true; #else -bool VerifyDomInfo = false; +static bool VerifyDomInfo = false; #endif static cl::opt<bool,true> VerifyDomInfoX("verify-dom-info", cl::location(VerifyDomInfo), diff --git a/lib/VMCore/LLVMContextImpl.cpp b/lib/VMCore/LLVMContextImpl.cpp index e71157f440..9e41a08156 100644 --- a/lib/VMCore/LLVMContextImpl.cpp +++ b/lib/VMCore/LLVMContextImpl.cpp @@ -13,6 +13,7 @@ #include "LLVMContextImpl.h" #include <algorithm> +using namespace llvm; LLVMContextImpl::LLVMContextImpl(LLVMContext &C) : TheTrueVal(0), TheFalseVal(0), diff --git a/lib/VMCore/LeaksContext.h b/lib/VMCore/LeaksContext.h index abff090b87..b9e59d46b7 100644 --- a/lib/VMCore/LeaksContext.h +++ b/lib/VMCore/LeaksContext.h @@ -14,7 +14,8 @@ #include "llvm/Value.h" #include "llvm/ADT/SmallPtrSet.h" -using namespace llvm; + +namespace llvm { template <class T> struct PrinterTrait { @@ -87,3 +88,5 @@ private: const T* Cache; const char* Name; }; + +} |