[llvm-commits] CVS: llvm/lib/Bytecode/Writer/ConstantWriter.cpp InstructionWriter.cpp Writer.cpp WriterInternals.h
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:44:40 PST 2003
Changes in directory llvm/lib/Bytecode/Writer:
ConstantWriter.cpp updated: 1.26 -> 1.27
InstructionWriter.cpp updated: 1.34 -> 1.35
Writer.cpp updated: 1.44 -> 1.45
WriterInternals.h updated: 1.13 -> 1.14
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+15 -0)
Index: llvm/lib/Bytecode/Writer/ConstantWriter.cpp
diff -u llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.26 llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.27
--- llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.26 Wed Oct 29 14:09:01 2003
+++ llvm/lib/Bytecode/Writer/ConstantWriter.cpp Tue Nov 11 16:41:32 2003
@@ -17,6 +17,8 @@
#include "llvm/SymbolTable.h"
#include "llvm/DerivedTypes.h"
+namespace llvm {
+
void BytecodeWriter::outputType(const Type *T) {
output_vbr((unsigned)T->getPrimitiveID(), Out);
@@ -202,3 +204,5 @@
}
return false;
}
+
+} // End llvm namespace
Index: llvm/lib/Bytecode/Writer/InstructionWriter.cpp
diff -u llvm/lib/Bytecode/Writer/InstructionWriter.cpp:1.34 llvm/lib/Bytecode/Writer/InstructionWriter.cpp:1.35
--- llvm/lib/Bytecode/Writer/InstructionWriter.cpp:1.34 Mon Oct 20 14:43:15 2003
+++ llvm/lib/Bytecode/Writer/InstructionWriter.cpp Tue Nov 11 16:41:32 2003
@@ -19,6 +19,8 @@
#include "Support/Statistic.h"
#include <algorithm>
+namespace llvm {
+
static Statistic<>
NumInstrs("bytecodewriter", "Number of instructions");
@@ -295,3 +297,5 @@
// operands or a large operand index that we are referring to.
outputInstructionFormat0(&I, Opcode, Table, Type, Out);
}
+
+} // End llvm namespace
Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.44 llvm/lib/Bytecode/Writer/Writer.cpp:1.45
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.44 Mon Oct 20 14:43:15 2003
+++ llvm/lib/Bytecode/Writer/Writer.cpp Tue Nov 11 16:41:32 2003
@@ -36,6 +36,8 @@
#include "Config/string.h"
#include <algorithm>
+namespace llvm {
+
static RegisterPass<WriteBytecodePass> X("emitbytecode", "Bytecode Writer");
static Statistic<>
@@ -304,3 +306,5 @@
Out.flush();
}
+
+} // End llvm namespace
Index: llvm/lib/Bytecode/Writer/WriterInternals.h
diff -u llvm/lib/Bytecode/Writer/WriterInternals.h:1.13 llvm/lib/Bytecode/Writer/WriterInternals.h:1.14
--- llvm/lib/Bytecode/Writer/WriterInternals.h:1.13 Tue Oct 21 10:17:12 2003
+++ llvm/lib/Bytecode/Writer/WriterInternals.h Tue Nov 11 16:41:32 2003
@@ -25,6 +25,8 @@
#include "llvm/SlotCalculator.h"
#include "llvm/Instruction.h"
+namespace llvm {
+
class BytecodeWriter {
std::deque<unsigned char> &Out;
SlotCalculator Table;
@@ -79,5 +81,6 @@
}
};
+} // End llvm namespace
#endif
More information about the llvm-commits
mailing list