[llvm-commits] [hlvm] r38018 - in /hlvm/trunk/tools/hlvm-xml2xml: Makefile hlvm-xml2xml.cpp
Reid Spencer
reid at x10sys.com
Sat Jul 7 16:59:00 PDT 2007
Author: reid
Date: Sat Jul 7 18:59:00 2007
New Revision: 38018
URL: http://llvm.org/viewvc/llvm-project?rev=38018&view=rev
Log:
Get the hlvm-xml2xml program to do a little bit and to link.
Modified:
hlvm/trunk/tools/hlvm-xml2xml/Makefile
hlvm/trunk/tools/hlvm-xml2xml/hlvm-xml2xml.cpp
Modified: hlvm/trunk/tools/hlvm-xml2xml/Makefile
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/tools/hlvm-xml2xml/Makefile?rev=38018&r1=38017&r2=38018&view=diff
==============================================================================
--- hlvm/trunk/tools/hlvm-xml2xml/Makefile (original)
+++ hlvm/trunk/tools/hlvm-xml2xml/Makefile Sat Jul 7 18:59:00 2007
@@ -2,6 +2,7 @@
LEVEL = ../..
TOOLNAME = hlvm-xml2xml
+USEDLIBS = HLVMXMLReader.a HLVMAST.a
LLVMLIBS = LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.hlvm
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=38018&r1=38017&r2=38018&view=diff
==============================================================================
--- hlvm/trunk/tools/hlvm-xml2xml/hlvm-xml2xml.cpp (original)
+++ hlvm/trunk/tools/hlvm-xml2xml/hlvm-xml2xml.cpp Sat Jul 7 18:59:00 2007
@@ -27,12 +27,14 @@
/// @brief Implements the main program for the hlvm-xml2xml executable
//===----------------------------------------------------------------------===//
+#include <hlvm/Reader/XML/XMLReader.h>
#include <llvm/Support/CommandLine.h>
#include <llvm/System/Signals.h>
#include <fstream>
#include <iostream>
using namespace llvm;
+using namespace hlvm;
static cl::opt<std::string>
InputFilename(cl::Positional, cl::desc("<input XML>"), cl::init("-"));
@@ -72,6 +74,9 @@
Out = &std::cout;
}
+ XMLReader* rdr = XMLReader::create(llvm::sys::Path(InputFilename));
+ rdr->read();
+
if (Out != &std::cout) {
static_cast<std::ofstream*>(Out)->close();
delete Out;
More information about the llvm-commits
mailing list