From a8221604021163455b19d49322001bca63656aa1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 7 Jun 2004 18:10:01 +0000 Subject: Eliminate more traces of the -c option git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14049 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-dis/llvm-dis.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'tools/llvm-dis') diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp index 1720847841..5465712351 100644 --- a/tools/llvm-dis/llvm-dis.cpp +++ b/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 #include -// 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 @@ -44,12 +37,8 @@ OutputFilename("o", cl::desc("Override output filename"), static cl::opt Force("f", cl::desc("Overwrite output files")); -static cl::opt -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 +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); -- cgit v1.2.3