Skip to content

Commit 22bb8f1

Browse files
committed
Update TargetInfo::getDefaultCallingConv()'s documentation too.
1 parent 0bf37a6 commit 22bb8f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clang/include/clang/Basic/TargetInfo.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,8 +1693,11 @@ class TargetInfo : public TransferrableTargetInfo,
16931693
/// Controls if __arithmetic_fence is supported in the targeted backend.
16941694
virtual bool checkArithmeticFenceSupported() const { return false; }
16951695

1696-
/// Gets the default calling convention for the given target and
1697-
/// declaration context.
1696+
/// Gets the default calling convention for the given target.
1697+
///
1698+
/// This function does not take into account any user options to override the
1699+
/// default calling convention. For that, see
1700+
/// ASTContext::getDefaultCallingConvention().
16981701
virtual CallingConv getDefaultCallingConv() const {
16991702
// Not all targets will specify an explicit calling convention that we can
17001703
// express. This will always do the right thing, even though it's not

0 commit comments

Comments
 (0)