summaryrefslogtreecommitdiff
path: root/tools/llc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-15 17:41:24 +0000
committerChris Lattner <sabre@nondot.org>2001-10-15 17:41:24 +0000
commit25c12299307a640ff847ae4dfa58257d07e47230 (patch)
tree1e63d8f952ce21bf684a8e74c9e03b10f2939a63 /tools/llc
parent1bffea0341968b3b2b0106c745d4602b6804e62f (diff)
downloadllvm-25c12299307a640ff847ae4dfa58257d07e47230.tar.gz
llvm-25c12299307a640ff847ae4dfa58257d07e47230.tar.bz2
llvm-25c12299307a640ff847ae4dfa58257d07e47230.tar.xz
Minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 41811afa7e..30777b02df 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -20,17 +20,16 @@
cl::String InputFilename ("", "Input filename", cl::NoFlags, "-");
cl::String OutputFilename("o", "Output filename", cl::NoFlags, "");
-cl::Flag Force ("f", "Overwrite output files", cl::NoFlags, false);
-cl::Flag DumpAsm ("d", "Print bytecode before native code generation", cl::Hidden,false);
-cl::Flag DoNotEmitAssembly("noasm", "Do not emit assembly code", cl::Hidden, false);
+cl::Flag Force ("f", "Overwrite output files");
+cl::Flag DumpAsm ("d", "Print bytecode before native code generation",
+ cl::Hidden);
+cl::Flag DoNotEmitAssembly("noasm", "Do not emit assembly code", cl::Hidden);
cl::Flag TraceBBValues ("trace",
- "Trace values at basic block and method exits",
- cl::NoFlags, false);
-cl::Flag TraceMethodValues("tracem", "Trace values only at method exits",
- cl::NoFlags, false);
+ "Trace values at basic block and method exits");
+cl::Flag TraceMethodValues("tracem", "Trace values only at method exits");
cl::Flag DebugTrace ("dumptrace",
"output trace code to a <fn>.trace.ll file",
- cl::Hidden, false);
+ cl::Hidden);
// GetFileNameRoot - Helper function to get the basename of a filename...
@@ -94,6 +93,8 @@ public:
}
~EmitAssembly() {
+ // TODO: This should be performed as a moduleCleanup function, but we don't
+ // have one yet!
Target.emitAssembly(TheMod, *Out);
if (DeleteStream) delete Out;
@@ -107,10 +108,7 @@ public:
// Entry point for the llc compiler.
//===---------------------------------------------------------------------===//
-int
-main(int argc, char **argv)
-{
- // Parse command line options...
+int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n");
// Allocate a target... in the future this will be controllable on the