summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorSandeep Patel <deeppatel1987@gmail.com>2009-11-11 03:23:46 +0000
committerSandeep Patel <deeppatel1987@gmail.com>2009-11-11 03:23:46 +0000
commit598825e8323aa48799bb9dbb4b234e86441fe921 (patch)
tree2d396dcef91d5576d5b75561ca854d26bc50a706 /llvm/lib/Support/CommandLine.cpp
parent7e1d6d78d5471efac6545049cb0d6501ca00a2ce (diff)
downloadbcm5719-llvm-598825e8323aa48799bb9dbb4b234e86441fe921.tar.gz
bcm5719-llvm-598825e8323aa48799bb9dbb4b234e86441fe921.zip
Show command-line args and features passed into backend in debug output. Approved by Evan Cheng.
llvm-svn: 86797
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 626daa254dd..07900d84936 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -17,6 +17,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/ManagedStatic.h"
@@ -765,6 +766,11 @@ void cl::ParseCommandLineOptions(int argc, char **argv,
free(*i);
}
+ DEBUG(errs() << "\nArgs: ";
+ for (int i = 0; i < argc; ++i)
+ errs() << argv[i] << ' ';
+ );
+
// If we had an error processing our arguments, don't let the program execute
if (ErrorParsing) exit(1);
}
OpenPOWER on IntegriCloud