[llvm-commits] CVS: llvm/include/llvm/Support/CommandLine.h

Reid Spencer reid at x10sys.com
Mon Dec 13 08:29:04 PST 2004



Changes in directory llvm/include/llvm/Support:

CommandLine.h updated: 1.40 -> 1.41
---
Log message:

Added a size_type typedef to LLVM containers to make Visual Studio shut up 
(and possibly to make LLVM more x86 64bit friendly). 



---
Diffs of the changes:  (+1 -1)

Index: llvm/include/llvm/Support/CommandLine.h
diff -u llvm/include/llvm/Support/CommandLine.h:1.40 llvm/include/llvm/Support/CommandLine.h:1.41
--- llvm/include/llvm/Support/CommandLine.h:1.40	Sat Dec  4 23:17:34 2004
+++ llvm/include/llvm/Support/CommandLine.h	Mon Dec 13 10:28:53 2004
@@ -435,7 +435,7 @@
   typedef DataType parser_data_type;
 
   // Implement virtual functions needed by generic_parser_base
-  unsigned getNumOptions() const { return Values.size(); }
+  unsigned getNumOptions() const { return (unsigned)Values.size(); }
   const char *getOption(unsigned N) const { return Values[N].first; }
   const char *getDescription(unsigned N) const {
     return Values[N].second.second;






More information about the llvm-commits mailing list