diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-02 04:28:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-02 04:28:06 +0000 |
commit | 560b5e42ab6fd944e5069f8bf0ab4b6985a30cdc (patch) | |
tree | b411156ad629f6f036308bfd3850e97027c31bc4 /llvm/lib/CodeGen | |
parent | 71f1d6d9d8e114522da4350b58b03c7ecda0256a (diff) | |
download | bcm5719-llvm-560b5e42ab6fd944e5069f8bf0ab4b6985a30cdc.tar.gz bcm5719-llvm-560b5e42ab6fd944e5069f8bf0ab4b6985a30cdc.zip |
Finegrainify namespacification
llvm-svn: 13948
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp index d1d3c562218..470be877a39 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp @@ -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 diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index db5941060db..76d7bb99463 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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 |