diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2024-07-27 23:34:35 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-10-23 18:26:01 +0000 | 
| commit | 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583 (patch) | |
| tree | 6cf5ab1f05330c6773b1f3f64799d56a9c7a1faa /contrib/llvm-project/clang/lib/CodeGen/Targets/PNaCl.cpp | |
| parent | 6b9f7133aba44189d9625c352bc2c2a59baf18ef (diff) | |
| parent | ac9a064cb179f3425b310fa2847f8764ac970a4d (diff) | |
Diffstat (limited to 'contrib/llvm-project/clang/lib/CodeGen/Targets/PNaCl.cpp')
| -rw-r--r-- | contrib/llvm-project/clang/lib/CodeGen/Targets/PNaCl.cpp | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/llvm-project/clang/lib/CodeGen/Targets/PNaCl.cpp b/contrib/llvm-project/clang/lib/CodeGen/Targets/PNaCl.cpp index 771aa7469da2..9b7d757df3a3 100644 --- a/contrib/llvm-project/clang/lib/CodeGen/Targets/PNaCl.cpp +++ b/contrib/llvm-project/clang/lib/CodeGen/Targets/PNaCl.cpp @@ -27,8 +27,8 @@ class PNaClABIInfo : public ABIInfo {    ABIArgInfo classifyArgumentType(QualType RetTy) const;    void computeInfo(CGFunctionInfo &FI) const override; -  Address EmitVAArg(CodeGenFunction &CGF, -                    Address VAListAddr, QualType Ty) const override; +  RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, +                   AggValueSlot Slot) const override;  };  class PNaClTargetCodeGenInfo : public TargetCodeGenInfo { @@ -45,15 +45,18 @@ void PNaClABIInfo::computeInfo(CGFunctionInfo &FI) const {      I.info = classifyArgumentType(I.type);  } -Address PNaClABIInfo::EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, -                                QualType Ty) const { +RValue PNaClABIInfo::EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, +                               QualType Ty, AggValueSlot Slot) const {    // The PNaCL ABI is a bit odd, in that varargs don't use normal    // function classification. Structs get passed directly for varargs    // functions, through a rewriting transform in    // pnacl-llvm/lib/Transforms/NaCl/ExpandVarArgs.cpp, which allows    // this target to actually support a va_arg instructions with an    // aggregate type, unlike other targets. -  return EmitVAArgInstr(CGF, VAListAddr, Ty, ABIArgInfo::getDirect()); +  return CGF.EmitLoadOfAnyValue( +      CGF.MakeAddrLValue( +          EmitVAArgInstr(CGF, VAListAddr, Ty, ABIArgInfo::getDirect()), Ty), +      Slot);  }  /// Classify argument of given type \p Ty.  | 
