[llvm-commits] [hlvm] r38015 - /hlvm/trunk/tools/hlvm-xml2xml/hlvm-xml2xml.cpp
Reid Spencer
reid at x10sys.com
Sat Jul 7 16:58:58 PDT 2007
Author: reid
Date: Sat Jul 7 18:58:58 2007
New Revision: 38015
URL: http://llvm.org/viewvc/llvm-project?rev=38015&view=rev
Log:
Fix the help message.
Modified:
hlvm/trunk/tools/hlvm-xml2xml/hlvm-xml2xml.cpp
Modified: hlvm/trunk/tools/hlvm-xml2xml/hlvm-xml2xml.cpp
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/tools/hlvm-xml2xml/hlvm-xml2xml.cpp?rev=38015&r1=38014&r2=38015&view=diff
==============================================================================
--- hlvm/trunk/tools/hlvm-xml2xml/hlvm-xml2xml.cpp (original)
+++ hlvm/trunk/tools/hlvm-xml2xml/hlvm-xml2xml.cpp Sat Jul 7 18:58:58 2007
@@ -30,9 +30,11 @@
#include <llvm/Support/CommandLine.h>
#include <llvm/System/Signals.h>
#include <fstream>
+#include <iostream>
+using namespace llvm;
static cl::opt<std::string>
-InputFilename(cl::Positional, cl::desc("<input bytecode>"), cl::init("-"));
+InputFilename(cl::Positional, cl::desc("<input XML>"), cl::init("-"));
static cl::opt<std::string>
OutputFilename("o", cl::desc("Override output filename"),
@@ -41,7 +43,8 @@
int main(int argc, char**argv)
{
try {
- cl::ParseCommandLineOptions(argc, argv, " llvm .bc -> .ll disassembler\n");
+ cl::ParseCommandLineOptions(argc, argv,
+ "hlvm-xml2xml XML->AST->XML translator\n");
sys::PrintStackTraceOnErrorSignal();
std::ostream *Out = &std::cout; // Default to printing to stdout.
@@ -70,7 +73,7 @@
}
if (Out != &std::cout) {
- ((std::ofstream*)Out)->close();
+ static_cast<std::ofstream*>(Out)->close();
delete Out;
}
return 0;
More information about the llvm-commits
mailing list