summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-07 18:10:01 +0000
committerChris Lattner <sabre@nondot.org>2004-06-07 18:10:01 +0000
commitbbc373bf8b6376bf6ef0d40de65d1ed43a78fc27 (patch)
tree7f4130d070dde22578ab6355c753012c8ff14bca /llvm/tools/llvm-dis
parentdb5c86d0b158661d5fafa412f36d4ace5a403364 (diff)
downloadbcm5719-llvm-bbc373bf8b6376bf6ef0d40de65d1ed43a78fc27.tar.gz
bcm5719-llvm-bbc373bf8b6376bf6ef0d40de65d1ed43a78fc27.zip
Eliminate more traces of the -c option
llvm-svn: 14049
Diffstat (limited to 'llvm/tools/llvm-dis')
-rw-r--r--llvm/tools/llvm-dis/llvm-dis.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp
index 1720847841d..54657123515 100644
--- a/llvm/tools/llvm-dis/llvm-dis.cpp
+++ b/llvm/tools/llvm-dis/llvm-dis.cpp
@@ -13,7 +13,6 @@
// to the x.ll file.
// Options:
// --help - Output information about command line switches
-// -c - Print C code instead of LLVM assembly
//
//===----------------------------------------------------------------------===//
@@ -26,12 +25,6 @@
#include <fstream>
#include <memory>
-// OutputMode - The different orderings to print basic blocks in...
-enum OutputMode {
- LLVM = 0, // Generate LLVM assembly (the default)
- c, // Generate C code
-};
-
using namespace llvm;
static cl::opt<std::string>
@@ -44,12 +37,8 @@ OutputFilename("o", cl::desc("Override output filename"),
static cl::opt<bool>
Force("f", cl::desc("Overwrite output files"));
-static cl::opt<enum OutputMode>
-WriteMode(cl::desc("Specify the output format:"),
- cl::values(clEnumValN(LLVM, "llvm", "Output LLVM assembly"),
- clEnumVal(c, "Output C code for program"),
- 0),
- cl::ReallyHidden);
+static cl::opt<bool>
+CWriteMode("c", cl::desc("Obsolete option, do not use"), cl::ReallyHidden);
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .bc -> .ll disassembler\n");
@@ -58,7 +47,7 @@ int main(int argc, char **argv) {
std::ostream *Out = &std::cout; // Default to printing to stdout...
std::string ErrorMessage;
- if (WriteMode == c) {
+ if (CWriteMode) {
std::cerr << "ERROR: llvm-dis no longer contains the C backend. "
<< "Use 'llc -march=c' instead!\n";
exit(1);
OpenPOWER on IntegriCloud