From 8c94086c908a57a1aaf18a3b11a47807ce639d6d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 18 Jan 2010 17:14:39 +0000 Subject: Encoding calling conventions in the type system, from Charles Davis! llvm-svn: 93726 --- clang/lib/Frontend/PCHWriter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Frontend/PCHWriter.cpp') diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp index 3f6841b5457..21e09744e35 100644 --- a/clang/lib/Frontend/PCHWriter.cpp +++ b/clang/lib/Frontend/PCHWriter.cpp @@ -139,6 +139,8 @@ void PCHTypeWriter::VisitExtVectorType(const ExtVectorType *T) { void PCHTypeWriter::VisitFunctionType(const FunctionType *T) { Writer.AddTypeRef(T->getResultType(), Record); Record.push_back(T->getNoReturnAttr()); + // FIXME: need to stabilize encoding of calling convention... + Record.push_back(T->getCallConv()); } void PCHTypeWriter::VisitFunctionNoProtoType(const FunctionNoProtoType *T) { -- cgit v1.2.3