diff options
author | John McCall <rjmccall@apple.com> | 2016-03-11 04:55:21 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2016-03-11 04:55:21 +0000 |
commit | 519966fc928f97a3fd096d21c0979828f86444c9 (patch) | |
tree | 7defd5c155e0afce7cbcf373ae426b7604512cd7 | |
parent | f26e73df7568e0d3cb3976c86e646e98d3db6789 (diff) | |
download | bcm5719-llvm-519966fc928f97a3fd096d21c0979828f86444c9.tar.gz bcm5719-llvm-519966fc928f97a3fd096d21c0979828f86444c9.zip |
Speculatively attempt to fix the MSVC build by making some
methods non-private.
llvm-svn: 263193
-rw-r--r-- | clang/include/clang/CodeGen/CGFunctionInfo.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/clang/include/clang/CodeGen/CGFunctionInfo.h b/clang/include/clang/CodeGen/CGFunctionInfo.h index d8de16a1102..b532c794b6d 100644 --- a/clang/include/clang/CodeGen/CGFunctionInfo.h +++ b/clang/include/clang/CodeGen/CGFunctionInfo.h @@ -492,14 +492,6 @@ class CGFunctionInfo final return getTrailingObjects<ExtParameterInfo>(); } - size_t numTrailingObjects(OverloadToken<ArgInfo>) const { - return NumArgs + 1; - } - size_t numTrailingObjects(OverloadToken<ExtParameterInfo>) const { - return (HasExtParameterInfos ? NumArgs : 0); - } - friend class TrailingObjects; - CGFunctionInfo() : Required(RequiredArgs::All) {} public: @@ -513,6 +505,15 @@ public: RequiredArgs required); void operator delete(void *p) { ::operator delete(p); } + // Friending class TrailingObjects is apparently not good enough for MSVC, + // so these have to be public. + size_t numTrailingObjects(OverloadToken<ArgInfo>) const { + return NumArgs + 1; + } + size_t numTrailingObjects(OverloadToken<ExtParameterInfo>) const { + return (HasExtParameterInfos ? NumArgs : 0); + } + typedef const ArgInfo *const_arg_iterator; typedef ArgInfo *arg_iterator; |