[llvm-commits] CVS: llvm/lib/Bytecode/Writer/ConstantWriter.cpp InstructionWriter.cpp Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 10 12:50:01 PST 2004
Changes in directory llvm/lib/Bytecode/Writer:
ConstantWriter.cpp updated: 1.28 -> 1.29
InstructionWriter.cpp updated: 1.35 -> 1.36
Writer.cpp updated: 1.46 -> 1.47
---
Log message:
Finegrainify namespacification
---
Diffs of the changes: (+4 -12)
Index: llvm/lib/Bytecode/Writer/ConstantWriter.cpp
diff -u llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.28 llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.29
--- llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.28 Mon Nov 17 11:28:29 2003
+++ llvm/lib/Bytecode/Writer/ConstantWriter.cpp Sat Jan 10 12:49:43 2004
@@ -16,8 +16,7 @@
#include "llvm/Constants.h"
#include "llvm/SymbolTable.h"
#include "llvm/DerivedTypes.h"
-
-namespace llvm {
+using namespace llvm;
void BytecodeWriter::outputType(const Type *T) {
output_vbr((unsigned)T->getPrimitiveID(), Out);
@@ -202,5 +201,3 @@
}
return false;
}
-
-} // End llvm namespace
Index: llvm/lib/Bytecode/Writer/InstructionWriter.cpp
diff -u llvm/lib/Bytecode/Writer/InstructionWriter.cpp:1.35 llvm/lib/Bytecode/Writer/InstructionWriter.cpp:1.36
--- llvm/lib/Bytecode/Writer/InstructionWriter.cpp:1.35 Tue Nov 11 16:41:32 2003
+++ llvm/lib/Bytecode/Writer/InstructionWriter.cpp Sat Jan 10 12:49:43 2004
@@ -18,8 +18,7 @@
#include "llvm/Instructions.h"
#include "Support/Statistic.h"
#include <algorithm>
-
-namespace llvm {
+using namespace llvm;
static Statistic<>
NumInstrs("bytecodewriter", "Number of instructions");
@@ -298,4 +297,3 @@
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.46 llvm/lib/Bytecode/Writer/Writer.cpp:1.47
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.46 Mon Dec 1 01:05:30 2003
+++ llvm/lib/Bytecode/Writer/Writer.cpp Sat Jan 10 12:49:43 2004
@@ -35,8 +35,7 @@
#include "Support/Statistic.h"
#include "Config/string.h"
#include <algorithm>
-
-namespace llvm {
+using namespace llvm;
static RegisterPass<WriteBytecodePass> X("emitbytecode", "Bytecode Writer");
@@ -267,7 +266,7 @@
}
}
-void WriteBytecodeToFile(const Module *C, std::ostream &Out) {
+void llvm::WriteBytecodeToFile(const Module *C, std::ostream &Out) {
assert(C && "You can't write a null module!!");
std::deque<unsigned char> Buffer;
@@ -302,5 +301,3 @@
Out.flush();
}
-
-} // End llvm namespace
More information about the llvm-commits
mailing list