[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp SelectionDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jun 1 23:32:01 PDT 2004
Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGBuilder.cpp updated: 1.5 -> 1.6
SelectionDAG.cpp updated: 1.4 -> 1.5
---
Log message:
Finegrainify namespacification
---
Diffs of the changes: (+3 -6)
Index: llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp:1.5 llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp:1.6
--- llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp:1.5 Tue Jun 1 22:57:43 2004
+++ llvm/lib/CodeGen/SelectionDAG/DAGBuilder.cpp Tue Jun 1 23:28:06 2004
@@ -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 @@
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 @@
Root = SDB.CurRoot;
}
-} // End llvm namespace
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.4 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.5
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.4 Tue Nov 11 16:41:33 2003
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Tue Jun 1 23:28:06 2004
@@ -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 @@
std::cerr << "\n";
}
-
-} // End llvm namespace
More information about the llvm-commits
mailing list