mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Add a --disable-compression option like llvm-link/llvm-as etc have
llvm-svn: 29941
This commit is contained in:
parent
5571652921
commit
b40511f27f
@ -38,6 +38,8 @@ 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),
|
||||
cl::desc("Don't compress the generated bytecode"));
|
||||
|
||||
// Other command line options...
|
||||
//
|
||||
@ -250,7 +252,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Write bytecode out to disk or cout as the last step...
|
||||
if (!NoOutput && !AnalyzeOnly)
|
||||
Passes.add(new WriteBytecodePass(Out, Out != &std::cout));
|
||||
Passes.add(new WriteBytecodePass(Out, Out != &std::cout, !NoCompress));
|
||||
|
||||
// Now that we have all of the passes ready, run them.
|
||||
Passes.run(*M.get());
|
||||
|
Loading…
Reference in New Issue
Block a user