Finegrainify namespacification
authorChris Lattner <sabre@nondot.org>
Wed, 2 Jun 2004 04:28:06 +0000 (04:28 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 2 Jun 2004 04:28:06 +0000 (04:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13948 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index d1d3c562218488076a7376dcf8c97fda1ff368b4..470be877a39750f5c2b0d9a5db871e1f85dd59a1 100644 (file)
@@ -20,9 +20,9 @@
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Support/InstVisitor.h"
+using namespace llvm;
 
 namespace llvm {
-
 struct SelectionDAGBuilder : public InstVisitor<SelectionDAGBuilder> {
   // DAG - the current dag we are building.
   SelectionDAG &DAG;
@@ -72,6 +72,7 @@ private:
   
   SelectionDAGNode *addSeqNode(SelectionDAGNode *N);
 };
+}  // end llvm namespace
 
 /// addSeqNode - The same as addNode, but the node is also included in the
 /// sequence nodes for this block.  This method should be called for any
@@ -273,4 +274,3 @@ SelectionDAG::SelectionDAG(MachineFunction &f, const TargetMachine &tm,
   Root = SDB.CurRoot;
 }
 
-} // End llvm namespace
index db5941060dbe60fdfb46b8bfb61e6b873c960ea7..76d7bb99463807f0222de8360e2d35ac21d6062d 100644 (file)
@@ -14,8 +14,7 @@
 
 #include "llvm/CodeGen/SelectionDAG.h"
 #include "llvm/Type.h"
-
-namespace llvm {
+using namespace llvm;
 
 SelectionDAG::~SelectionDAG() {
   for (unsigned i = 0, e = AllNodes.size(); i != e; ++i)
@@ -128,5 +127,3 @@ void SelectionDAGNode::printit(unsigned Offset, unsigned &LastID,
 
   std::cerr << "\n";
 }
-
-} // End llvm namespace