summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReader.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-03-30 20:24:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-03-30 20:24:48 +0000
commitc50c27cca870fa033f3694a29ae78cc1821889e6 (patch)
treeaf51eec7f9a5980d187532d92f6f4ea36646c8a6 /clang/lib/Frontend/PCHReader.cpp
parent04c713dd4515087eccbc1c57677a8bbeebb67e35 (diff)
downloadbcm5719-llvm-c50c27cca870fa033f3694a29ae78cc1821889e6.tar.gz
bcm5719-llvm-c50c27cca870fa033f3694a29ae78cc1821889e6.zip
the big refactoring bits of PR3782.
This introduces FunctionType::ExtInfo to hold the calling convention and the noreturn attribute. The next patch will extend it to include the regparm attribute and fix the bug. llvm-svn: 99920
Diffstat (limited to 'clang/lib/Frontend/PCHReader.cpp')
-rw-r--r--clang/lib/Frontend/PCHReader.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp
index 8fd81df098e..ceb7a6bf57b 100644
--- a/clang/lib/Frontend/PCHReader.cpp
+++ b/clang/lib/Frontend/PCHReader.cpp
@@ -2080,8 +2080,8 @@ QualType PCHReader::ReadTypeRecord(uint64_t Offset) {
return QualType();
}
QualType ResultType = GetType(Record[0]);
- return Context->getFunctionNoProtoType(ResultType, Record[1],
- (CallingConv)Record[2]);
+ FunctionType::ExtInfo Info(Record[1], (CallingConv)Record[2]);
+ return Context->getFunctionNoProtoType(ResultType, Info);
}
case pch::TYPE_FUNCTION_PROTO: {
@@ -2104,7 +2104,8 @@ QualType PCHReader::ReadTypeRecord(uint64_t Offset) {
return Context->getFunctionType(ResultType, ParamTypes.data(), NumParams,
isVariadic, Quals, hasExceptionSpec,
hasAnyExceptionSpec, NumExceptions,
- Exceptions.data(), NoReturn, CallConv);
+ Exceptions.data(),
+ FunctionType::ExtInfo(NoReturn, CallConv));
}
case pch::TYPE_UNRESOLVED_USING:
OpenPOWER on IntegriCloud