mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
default to emiting an uncompressed .bc file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33420 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b5b182e5f
commit
17be6791b8
@ -27,8 +27,8 @@ class WriteBytecodePass : public ModulePass {
|
||||
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() {
|
||||
|
@ -23,7 +23,7 @@ namespace llvm {
|
||||
/// 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
|
||||
|
@ -57,7 +57,7 @@ bool BugDriver::writeProgramToFile(const std::string &Filename,
|
||||
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;
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ namespace {
|
||||
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,
|
||||
|
@ -42,7 +42,7 @@ namespace {
|
||||
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"));
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ static cl::opt<bool>
|
||||
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>
|
||||
|
@ -74,7 +74,7 @@ static cl::opt<bool> Native("native",
|
||||
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",
|
||||
|
@ -43,7 +43,7 @@ Verbose("v", cl::desc("Print information about actions taken"));
|
||||
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
|
||||
|
@ -364,7 +364,7 @@ LTO::optimizeModules(const std::string &OutputFilename,
|
||||
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
|
||||
@ -418,7 +418,7 @@ LTO::optimizeModules(const std::string &OutputFilename,
|
||||
tempFileName += "1.bc";
|
||||
std::ofstream Out(tempFileName.c_str(), io_mode);
|
||||
OStream L(Out);
|
||||
WriteBytecodeToFile(bigOne, L, true);
|
||||
WriteBytecodeToFile(bigOne, L);
|
||||
}
|
||||
|
||||
targetTriple = bigOne->getTargetTriple();
|
||||
|
@ -41,7 +41,7 @@ using namespace llvm;
|
||||
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...
|
||||
|
Loading…
Reference in New Issue
Block a user