implement a lot more semantic analysis for tuple conversions.

Swift SVN r136
This commit is contained in:
Chris Lattner
2010-08-03 05:25:10 +00:00
parent 66897ed42e
commit 6858e37cf2
3 changed files with 101 additions and 16 deletions

View File

@@ -26,6 +26,7 @@ namespace llvm {
namespace swift {
class ASTContext;
class NamedDecl;
class Identifier;
enum TypeKind {
BuiltinDependentKind,
@@ -125,6 +126,9 @@ public:
/// NamedDecls automatically.
Type *getElementType(unsigned FieldNo) const;
/// getNamedElementId - If this tuple has a field with the specified name,
/// return the field index, otherwise return -1.
int getNamedElementId(Identifier I) const;
void print(llvm::raw_ostream &OS) const;