[llvm-commits] CVS: llvm/include/llvm/Support/CFG.h CallSite.h ConstantRange.h InstIterator.h InstVisitor.h Mangler.h PassNameParser.h ToolRunner.h ValueHolder.h
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:45:15 PST 2003
Changes in directory llvm/include/llvm/Support:
CFG.h updated: 1.17 -> 1.18
CallSite.h updated: 1.12 -> 1.13
ConstantRange.h updated: 1.4 -> 1.5
InstIterator.h updated: 1.8 -> 1.9
InstVisitor.h updated: 1.25 -> 1.26
Mangler.h updated: 1.7 -> 1.8
PassNameParser.h updated: 1.8 -> 1.9
ToolRunner.h updated: 1.5 -> 1.6
ValueHolder.h updated: 1.4 -> 1.5
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+42 -1)
Index: llvm/include/llvm/Support/CFG.h
diff -u llvm/include/llvm/Support/CFG.h:1.17 llvm/include/llvm/Support/CFG.h:1.18
--- llvm/include/llvm/Support/CFG.h:1.17 Sun Nov 9 22:23:52 2003
+++ llvm/include/llvm/Support/CFG.h Tue Nov 11 16:41:31 2003
@@ -20,6 +20,8 @@
#include "llvm/InstrTypes.h"
#include "Support/iterator"
+namespace llvm {
+
//===--------------------------------------------------------------------===//
// BasicBlock pred_iterator definition
//===--------------------------------------------------------------------===//
@@ -263,5 +265,7 @@
return &G.Graph->getEntryBlock();
}
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Support/CallSite.h
diff -u llvm/include/llvm/Support/CallSite.h:1.12 llvm/include/llvm/Support/CallSite.h:1.13
--- llvm/include/llvm/Support/CallSite.h:1.12 Fri Nov 7 13:25:22 2003
+++ llvm/include/llvm/Support/CallSite.h Tue Nov 11 16:41:31 2003
@@ -23,6 +23,8 @@
#include "llvm/Instruction.h"
+namespace llvm {
+
class CallInst;
class InvokeInst;
@@ -99,5 +101,7 @@
return getInstruction() < CS.getInstruction();
}
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Support/ConstantRange.h
diff -u llvm/include/llvm/Support/ConstantRange.h:1.4 llvm/include/llvm/Support/ConstantRange.h:1.5
--- llvm/include/llvm/Support/ConstantRange.h:1.4 Mon Oct 20 15:19:26 2003
+++ llvm/include/llvm/Support/ConstantRange.h Tue Nov 11 16:41:31 2003
@@ -26,6 +26,9 @@
#include "Support/DataTypes.h"
#include <iosfwd>
+
+namespace llvm {
+
class ConstantIntegral;
class Type;
@@ -123,5 +126,7 @@
CR.print(OS);
return OS;
}
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Support/InstIterator.h
diff -u llvm/include/llvm/Support/InstIterator.h:1.8 llvm/include/llvm/Support/InstIterator.h:1.9
--- llvm/include/llvm/Support/InstIterator.h:1.8 Mon Oct 20 15:19:27 2003
+++ llvm/include/llvm/Support/InstIterator.h Tue Nov 11 16:41:31 2003
@@ -22,6 +22,8 @@
#include "llvm/BasicBlock.h"
#include "llvm/Function.h"
+namespace llvm {
+
// This class implements inst_begin() & inst_end() for
// inst_iterator and const_inst_iterator's.
//
@@ -136,5 +138,7 @@
inline const_inst_iterator inst_end(const Function &F) {
return const_inst_iterator(F, true);
}
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Support/InstVisitor.h
diff -u llvm/include/llvm/Support/InstVisitor.h:1.25 llvm/include/llvm/Support/InstVisitor.h:1.26
--- llvm/include/llvm/Support/InstVisitor.h:1.25 Mon Oct 20 15:19:27 2003
+++ llvm/include/llvm/Support/InstVisitor.h Tue Nov 11 16:41:31 2003
@@ -52,6 +52,8 @@
#include "llvm/Instruction.h"
+namespace llvm {
+
class Module;
// We operate on opaque instruction classes, so forward declare all instruction
@@ -64,7 +66,6 @@
class TerminatorInst; class BinaryOperator;
class AllocationInst;
-
#define DELEGATE(CLASS_TO_VISIT) \
return ((SubClass*)this)->visit##CLASS_TO_VISIT((CLASS_TO_VISIT&)I)
@@ -185,5 +186,7 @@
};
#undef DELEGATE
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Support/Mangler.h
diff -u llvm/include/llvm/Support/Mangler.h:1.7 llvm/include/llvm/Support/Mangler.h:1.8
--- llvm/include/llvm/Support/Mangler.h:1.7 Mon Oct 20 15:19:27 2003
+++ llvm/include/llvm/Support/Mangler.h Tue Nov 11 16:41:31 2003
@@ -14,12 +14,19 @@
#ifndef LLVM_SUPPORT_MANGLER_H
#define LLVM_SUPPORT_MANGLER_H
+namespace llvm {
+
class Value;
class Module;
+
+} // End llvm namespace
+
#include <map>
#include <set>
#include <string>
+namespace llvm {
+
class Mangler {
/// This keeps track of which global values have had their names
/// mangled in the current module.
@@ -53,5 +60,7 @@
///
static std::string makeNameProper(const std::string &x);
};
+
+} // End llvm namespace
#endif // LLVM_SUPPORT_MANGLER_H
Index: llvm/include/llvm/Support/PassNameParser.h
diff -u llvm/include/llvm/Support/PassNameParser.h:1.8 llvm/include/llvm/Support/PassNameParser.h:1.9
--- llvm/include/llvm/Support/PassNameParser.h:1.8 Mon Oct 20 15:19:29 2003
+++ llvm/include/llvm/Support/PassNameParser.h Tue Nov 11 16:41:31 2003
@@ -28,6 +28,8 @@
#include <algorithm>
#include <iostream>
+namespace llvm {
+
//===----------------------------------------------------------------------===//
// PassNameParser class - Make use of the pass registration mechanism to
// automatically add a command line argument to opt for each pass.
@@ -113,5 +115,7 @@
return (P->getPassType() & Flags) == 0;
}
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Support/ToolRunner.h
diff -u llvm/include/llvm/Support/ToolRunner.h:1.5 llvm/include/llvm/Support/ToolRunner.h:1.6
--- llvm/include/llvm/Support/ToolRunner.h:1.5 Mon Oct 20 15:19:35 2003
+++ llvm/include/llvm/Support/ToolRunner.h Tue Nov 11 16:41:31 2003
@@ -20,6 +20,8 @@
#include "Support/SystemUtils.h"
#include <vector>
+namespace llvm {
+
class CBE;
class LLC;
@@ -136,5 +138,7 @@
//
int OutputAsm(const std::string &Bytecode, std::string &OutputAsmFile);
};
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Support/ValueHolder.h
diff -u llvm/include/llvm/Support/ValueHolder.h:1.4 llvm/include/llvm/Support/ValueHolder.h:1.5
--- llvm/include/llvm/Support/ValueHolder.h:1.4 Mon Oct 20 15:19:35 2003
+++ llvm/include/llvm/Support/ValueHolder.h Tue Nov 11 16:41:31 2003
@@ -20,6 +20,8 @@
#include "llvm/User.h"
+namespace llvm {
+
struct ValueHolder : public User {
ValueHolder(Value *V = 0);
ValueHolder(const ValueHolder &VH) : User(VH.getType(), Value::TypeVal) {
@@ -45,5 +47,7 @@
OS << "ValueHolder";
}
};
+
+} // End llvm namespace
#endif
More information about the llvm-commits
mailing list