default to emiting an uncompressed .bc file
authorChris Lattner <sabre@nondot.org>
Sun, 21 Jan 2007 06:34:18 +0000 (06:34 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 Jan 2007 06:34:18 +0000 (06:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33420 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bytecode/WriteBytecodePass.h
include/llvm/Bytecode/Writer.h
tools/bugpoint/OptimizerDriver.cpp
tools/gccas/gccas.cpp
tools/gccld/GenerateCode.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-ld/llvm-ld.cpp
tools/llvm-link/llvm-link.cpp
tools/lto/lto.cpp
tools/opt/opt.cpp

index c4e2c5d5d5c9788cfe33c578f448570dbd3d789d..b0155e4ddf6921576790222248e842c89a0518ab 100644 (file)
@@ -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() {
index c87cc92848336368b695bdb3ca165486619c3aa3..d18d82cfc337f205ddc7fc78cffc1aeba0e7a1d0 100644 (file)
@@ -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
index 8a19739e2852cf34da3d5a17f5ffd77a89cfab0f..374de26911456c147691df902fed054b79221e90 100644 (file)
@@ -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;
   }
index 587a6a850d88acc89578a70fb24bdec9b72f9bab..c102fc581fa7ab28bcea1a2e57bf26ed4f30d5d5 100644 (file)
@@ -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,
index 13bda75b4233cee3190a278611784bebdee04f74..db1caa82709f9bd630f5454763b15d9b2ab093a7 100644 (file)
@@ -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"));
 }
 
index dd29bc19e83d7b47ba57be2585d4711cec8c106f..e3dbfb46be94543ed6dfcf134c11dda041187bfc 100644 (file)
@@ -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>
index 2e599064a5297cdbd773458d9590a29f3bd75329..6ec0ce7591b047571a5fe194f5c854dfc95e3356 100644 (file)
@@ -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",
index be556d1ed2570127ac1b2417b793e91c80bf2a31..343b36cefcd0a3f14e66ef7a2bdd60b7700ecf77 100644 (file)
@@ -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
index 383da87a62d7f856be4fbad75b2eb18c86ac5de3..38f01a004a6fbbb18f263cbce40690e73653bc76 100644 (file)
@@ -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();
index 7d5dd2113df819512bc033ae281e99b5c7c5c3d3..d5d6f779dbc3f9310f9d19f6e3aab23fe345a825 100644 (file)
@@ -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...