#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);
}
return false;
}
-
-} // End llvm namespace
#include "llvm/Instructions.h"
#include "Support/Statistic.h"
#include <algorithm>
-
-namespace llvm {
+using namespace llvm;
static Statistic<>
NumInstrs("bytecodewriter", "Number of instructions");
outputInstructionFormat0(&I, Opcode, Table, Type, Out);
}
-} // End llvm namespace
#include "Support/Statistic.h"
#include "Config/string.h"
#include <algorithm>
-
-namespace llvm {
+using namespace llvm;
static RegisterPass<WriteBytecodePass> X("emitbytecode", "Bytecode Writer");
}
}
-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;
Out.flush();
}
-
-} // End llvm namespace