[llvm] r214263 - Header hygiene: remove using directive and #undef DEBUG_TYPE once we're done.

Richard Smith richard-llvm at metafoo.co.uk
Tue Jul 29 17:25:24 PDT 2014


Author: rsmith
Date: Tue Jul 29 19:25:24 2014
New Revision: 214263

URL: http://llvm.org/viewvc/llvm-project?rev=214263&view=rev
Log:
Header hygiene: remove using directive and #undef DEBUG_TYPE once we're done.

Modified:
    llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h
    llvm/trunk/lib/CodeGen/MachineRegionInfo.cpp

Modified: llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h?rev=214263&r1=214262&r2=214263&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h (original)
+++ llvm/trunk/include/llvm/Analysis/RegionInfoImpl.h Tue Jul 29 19:25:24 2014
@@ -25,7 +25,7 @@
 #include <iterator>
 #include <set>
 
-using namespace llvm;
+namespace llvm {
 
 #define DEBUG_TYPE "region"
 
@@ -916,4 +916,8 @@ void RegionInfoBase<Tr>::calculate(FuncT
   buildRegionsTree(DT->getNode(BB), TopLevelRegion);
 }
 
+#undef DEBUG_TYPE
+
+} // end namespace llvm
+
 #endif

Modified: llvm/trunk/lib/CodeGen/MachineRegionInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineRegionInfo.cpp?rev=214263&r1=214262&r2=214263&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineRegionInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineRegionInfo.cpp Tue Jul 29 19:25:24 2014
@@ -4,6 +4,8 @@
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Analysis/RegionInfoImpl.h"
 
+#define DEBUG_TYPE "region"
+
 using namespace llvm;
 
 STATISTIC(numMachineRegions,       "The # of machine regions");





More information about the llvm-commits mailing list