diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-10 18:49:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-10 18:49:43 +0000 |
commit | dfe0346e96ef6f61ddbad9c91a1a29d18399f75f (patch) | |
tree | 2702870caa1fcbeb9e0831cfb8ccd79633b8f776 /llvm/lib/Bytecode | |
parent | 68fbab0ee8e63383a768f92081ea385f7781988f (diff) | |
download | bcm5719-llvm-dfe0346e96ef6f61ddbad9c91a1a29d18399f75f.tar.gz bcm5719-llvm-dfe0346e96ef6f61ddbad9c91a1a29d18399f75f.zip |
Finegrainify namespacification
llvm-svn: 10737
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Writer/ConstantWriter.cpp | 5 | ||||
-rw-r--r-- | llvm/lib/Bytecode/Writer/InstructionWriter.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Bytecode/Writer/Writer.cpp | 7 |
3 files changed, 4 insertions, 12 deletions
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp index 5813ea296d8..30d93c96242 100644 --- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp @@ -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 @@ bool BytecodeWriter::outputConstant(const Constant *CPV) { } return false; } - -} // End llvm namespace diff --git a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp index d52f24145f4..bc5268c9435 100644 --- a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp +++ b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp @@ -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 @@ void BytecodeWriter::processInstruction(const Instruction &I) { outputInstructionFormat0(&I, Opcode, Table, Type, Out); } -} // End llvm namespace diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp index 7fa22b81017..09fd667e193 100644 --- a/llvm/lib/Bytecode/Writer/Writer.cpp +++ b/llvm/lib/Bytecode/Writer/Writer.cpp @@ -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 BytecodeWriter::outputSymbolTable(const SymbolTable &MST) { } } -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 @@ void WriteBytecodeToFile(const Module *C, std::ostream &Out) { Out.flush(); } - -} // End llvm namespace |