bool CompressFile;
public:
WriteBytecodePass()
- : Out(&cout), DeleteStream(false), CompressFile(true) {}
- WriteBytecodePass(OStream *o, bool DS = false, bool CF = true)
+ : Out(&cout), DeleteStream(false), CompressFile(false) {}
+ WriteBytecodePass(OStream *o, bool DS = false, bool CF = false)
: Out(o), DeleteStream(DS), CompressFile(CF) {}
inline ~WriteBytecodePass() {
/// stream. If compress is set to true, try to use compression when writing
/// out the file. This can never fail if M is a well-formed module.
void WriteBytecodeToFile(const Module *M, OStream &Out,
- bool compress = true);
+ bool compress = false);
} // End llvm namespace
#endif
if (!Out.good()) return true;
try {
OStream L(Out);
- WriteBytecodeToFile(M ? M : Program, L, /*compression=*/true);
+ WriteBytecodeToFile(M ? M : Program, L, /*compression=*/false);
} catch (...) {
return true;
}
cl::desc("Strip debugger symbol info from translation unit"));
cl::opt<bool>
- NoCompress("disable-compression", cl::init(false),
+ NoCompress("disable-compression", cl::init(true),
cl::desc("Don't compress the generated bytecode"));
cl::opt<bool> TF("traditional-format", cl::Hidden,
cl::desc("Do not run any optimization passes"));
cl::opt<bool>
- NoCompress("disable-compression", cl::init(false),
+ NoCompress("disable-compression", cl::init(true),
cl::desc("Don't compress the generated bytecode"));
}
DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
static cl::opt<bool>
-NoCompress("disable-compression", cl::init(false),
+NoCompress("disable-compression", cl::init(true),
cl::desc("Don't compress the generated bytecode"));
static cl::opt<bool>
static cl::opt<bool>NativeCBE("native-cbe",
cl::desc("Generate a native binary with the C backend and GCC"));
-static cl::opt<bool>DisableCompression("disable-compression",cl::init(false),
+static cl::opt<bool>DisableCompression("disable-compression", cl::init(true),
cl::desc("Disable writing of compressed bytecode files"));
static cl::list<std::string> PostLinkOpts("post-link-opts",
static cl::opt<bool>
DumpAsm("d", cl::desc("Print assembly as linked"), cl::Hidden);
-static cl::opt<bool> NoCompress("disable-compression", cl::init(false),
+static cl::opt<bool> NoCompress("disable-compression", cl::init(true),
cl::desc("Don't compress the generated bytecode"));
// LoadFile - Read the specified bytecode file in and return it. This routine
tempFileName += "0.bc";
std::ofstream Out(tempFileName.c_str(), io_mode);
OStream L(Out);
- WriteBytecodeToFile(bigOne, L, true);
+ WriteBytecodeToFile(bigOne, L);
}
// Strip leading underscore because it was added to match names
tempFileName += "1.bc";
std::ofstream Out(tempFileName.c_str(), io_mode);
OStream L(Out);
- WriteBytecodeToFile(bigOne, L, true);
+ WriteBytecodeToFile(bigOne, L);
}
targetTriple = bigOne->getTargetTriple();
static cl::list<const PassInfo*, bool, PassNameParser>
PassList(cl::desc("Optimizations available:"));
-static cl::opt<bool> NoCompress("disable-compression", cl::init(false),
+static cl::opt<bool> NoCompress("disable-compression", cl::init(true),
cl::desc("Don't compress the generated bytecode"));
// Other command line options...