[llvm-commits] [hlvm] r38350 - /hlvm/trunk/hlvm/Writer/XMLWriter.cpp
Reid Spencer
reid at x10sys.com
Sat Jul 7 17:02:34 PDT 2007
Author: reid
Date: Sat Jul 7 19:02:34 2007
New Revision: 38350
URL: http://llvm.org/viewvc/llvm-project?rev=38350&view=rev
Log:
Fix a problem generating range literals. Negative values were
being generated as unsigned quantities. This bug found by the
test case generator.
Modified:
hlvm/trunk/hlvm/Writer/XMLWriter.cpp
Modified: hlvm/trunk/hlvm/Writer/XMLWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/Writer/XMLWriter.cpp?rev=38350&r1=38349&r2=38350&view=diff
==============================================================================
--- hlvm/trunk/hlvm/Writer/XMLWriter.cpp (original)
+++ hlvm/trunk/hlvm/Writer/XMLWriter.cpp Sat Jul 7 19:02:34 2007
@@ -90,6 +90,8 @@
{ writeAttribute(name, t->getName()); }
inline void writeAttribute(const char* name, uint64_t val)
{ writeAttribute(name, llvm::utostr(val)); }
+ inline void writeAttribute(const char* name, int64_t val)
+ { writeAttribute(name, llvm::itostr(val)); }
inline void writeElement(const char* elem, const char* body)
{ xmlTextWriterWriteElement(writer,
reinterpret_cast<const xmlChar*>(elem),
More information about the llvm-commits
mailing list