Finegrainify namespacification

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10737 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-01-10 18:49:43 +00:00
parent be39e43d33
commit 44f549b4eb
3 changed files with 4 additions and 12 deletions

View File

@@ -16,8 +16,7 @@
#include "llvm/Constants.h" #include "llvm/Constants.h"
#include "llvm/SymbolTable.h" #include "llvm/SymbolTable.h"
#include "llvm/DerivedTypes.h" #include "llvm/DerivedTypes.h"
using namespace llvm;
namespace llvm {
void BytecodeWriter::outputType(const Type *T) { void BytecodeWriter::outputType(const Type *T) {
output_vbr((unsigned)T->getPrimitiveID(), Out); output_vbr((unsigned)T->getPrimitiveID(), Out);
@@ -202,5 +201,3 @@ bool BytecodeWriter::outputConstant(const Constant *CPV) {
} }
return false; return false;
} }
} // End llvm namespace

View File

@@ -18,8 +18,7 @@
#include "llvm/Instructions.h" #include "llvm/Instructions.h"
#include "Support/Statistic.h" #include "Support/Statistic.h"
#include <algorithm> #include <algorithm>
using namespace llvm;
namespace llvm {
static Statistic<> static Statistic<>
NumInstrs("bytecodewriter", "Number of instructions"); NumInstrs("bytecodewriter", "Number of instructions");
@@ -298,4 +297,3 @@ void BytecodeWriter::processInstruction(const Instruction &I) {
outputInstructionFormat0(&I, Opcode, Table, Type, Out); outputInstructionFormat0(&I, Opcode, Table, Type, Out);
} }
} // End llvm namespace

View File

@@ -35,8 +35,7 @@
#include "Support/Statistic.h" #include "Support/Statistic.h"
#include "Config/string.h" #include "Config/string.h"
#include <algorithm> #include <algorithm>
using namespace llvm;
namespace llvm {
static RegisterPass<WriteBytecodePass> X("emitbytecode", "Bytecode Writer"); 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!!"); assert(C && "You can't write a null module!!");
std::deque<unsigned char> Buffer; std::deque<unsigned char> Buffer;
@@ -302,5 +301,3 @@ void WriteBytecodeToFile(const Module *C, std::ostream &Out) {
Out.flush(); Out.flush();
} }
} // End llvm namespace