[llvm-commits] [llvm] r136482 - /llvm/trunk/utils/TableGen/Record.h

David Greene greened at obbligato.org
Fri Jul 29 12:06:59 PDT 2011


Author: greened
Date: Fri Jul 29 14:06:59 2011
New Revision: 136482

URL: http://llvm.org/viewvc/llvm-project?rev=136482&view=rev
Log:
Add ListInit::getValues

Add a getValues ListInit method to return the sequence of values in
the list.

Modified:
    llvm/trunk/utils/TableGen/Record.h

Modified: llvm/trunk/utils/TableGen/Record.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/Record.h?rev=136482&r1=136481&r2=136482&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/Record.h (original)
+++ llvm/trunk/utils/TableGen/Record.h Fri Jul 29 14:06:59 2011
@@ -15,6 +15,7 @@
 #ifndef RECORD_H
 #define RECORD_H
 
+#include "llvm/ADT/ArrayRef.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/raw_ostream.h"
@@ -785,6 +786,8 @@
 
   virtual std::string getAsString() const;
 
+  ArrayRef<Init*> getValues() const { return Values; }
+
   inline iterator       begin()       { return Values.begin(); }
   inline const_iterator begin() const { return Values.begin(); }
   inline iterator       end  ()       { return Values.end();   }





More information about the llvm-commits mailing list