[llvm-commits] CVS: llvm/lib/Analysis/LiveVar/BBLiveVar.cpp BBLiveVar.h FunctionLiveVarInfo.cpp ValueSet.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:45:21 PST 2003
Changes in directory llvm/lib/Analysis/LiveVar:
BBLiveVar.cpp updated: 1.38 -> 1.39
BBLiveVar.h updated: 1.24 -> 1.25
FunctionLiveVarInfo.cpp updated: 1.49 -> 1.50
ValueSet.cpp updated: 1.15 -> 1.16
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+14 -3)
Index: llvm/lib/Analysis/LiveVar/BBLiveVar.cpp
diff -u llvm/lib/Analysis/LiveVar/BBLiveVar.cpp:1.38 llvm/lib/Analysis/LiveVar/BBLiveVar.cpp:1.39
--- llvm/lib/Analysis/LiveVar/BBLiveVar.cpp:1.38 Mon Oct 20 15:52:23 2003
+++ llvm/lib/Analysis/LiveVar/BBLiveVar.cpp Tue Nov 11 16:41:32 2003
@@ -21,6 +21,7 @@
/// BROKEN: Should not include sparc stuff directly into here
#include "../../Target/Sparc/SparcInternals.h" // Only for PHI defn
+namespace llvm {
BBLiveVar::BBLiveVar(const BasicBlock &bb, MachineBasicBlock &mbb, unsigned id)
: BB(bb), MBB(mbb), POID(id) {
@@ -229,6 +230,4 @@
std::cerr << " Out: "; printSet(OutSet); std::cerr << "\n";
}
-
-
-
+} // End llvm namespace
Index: llvm/lib/Analysis/LiveVar/BBLiveVar.h
diff -u llvm/lib/Analysis/LiveVar/BBLiveVar.h:1.24 llvm/lib/Analysis/LiveVar/BBLiveVar.h:1.25
--- llvm/lib/Analysis/LiveVar/BBLiveVar.h:1.24 Tue Oct 21 10:17:12 2003
+++ llvm/lib/Analysis/LiveVar/BBLiveVar.h Tue Nov 11 16:41:32 2003
@@ -17,6 +17,9 @@
#include "llvm/CodeGen/ValueSet.h"
#include "Support/hash_map"
+
+namespace llvm {
+
class BasicBlock;
class Value;
class MachineBasicBlock;
@@ -81,5 +84,7 @@
void printAllSets() const; // for printing Def/In/Out sets
void printInOutSets() const; // for printing In/Out sets
};
+
+} // End llvm namespace
#endif
Index: llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp
diff -u llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp:1.49 llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp:1.50
--- llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp:1.49 Mon Oct 20 15:52:23 2003
+++ llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp Tue Nov 11 16:41:32 2003
@@ -23,6 +23,8 @@
#include "Support/CommandLine.h"
#include "BBLiveVar.h"
+namespace llvm {
+
static RegisterAnalysis<FunctionLiveVarInfo>
X("livevar", "Live Variable Analysis");
@@ -318,3 +320,5 @@
SetAI = NewSet;
}
}
+
+} // End llvm namespace
Index: llvm/lib/Analysis/LiveVar/ValueSet.cpp
diff -u llvm/lib/Analysis/LiveVar/ValueSet.cpp:1.15 llvm/lib/Analysis/LiveVar/ValueSet.cpp:1.16
--- llvm/lib/Analysis/LiveVar/ValueSet.cpp:1.15 Mon Oct 20 14:43:14 2003
+++ llvm/lib/Analysis/LiveVar/ValueSet.cpp Tue Nov 11 16:41:32 2003
@@ -11,6 +11,8 @@
#include "llvm/Value.h"
#include <iostream>
+namespace llvm {
+
std::ostream &operator<<(std::ostream &O, RAV V) { // func to print a Value
const Value &v = V.V;
if (v.hasName())
@@ -26,3 +28,4 @@
std::cerr << RAV(*I);
}
+} // End llvm namespace
More information about the llvm-commits
mailing list