From: Rafael Espindola Date: Mon, 23 Jul 2012 23:30:29 +0000 (+0000) Subject: Make classifyReturnType and classifyArgumentType private. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b33a3c448ec669a7ef530ef8094cdfc9346468cf;p=clang Make classifyReturnType and classifyArgumentType private. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160648 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 13a3ff1ee2..939e53e797 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -434,12 +434,12 @@ class X86_32ABIInfo : public ABIInfo { /// \brief Return the alignment to use for the given type on the stack. unsigned getTypeStackAlignInBytes(QualType Ty, unsigned Align) const; -public: - - ABIArgInfo classifyReturnType(QualType RetTy, + ABIArgInfo classifyReturnType(QualType RetTy, unsigned callingConvention) const; ABIArgInfo classifyArgumentType(QualType RetTy) const; +public: + virtual void computeInfo(CGFunctionInfo &FI) const { FI.getReturnInfo() = classifyReturnType(FI.getReturnType(), FI.getCallingConvention());