diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-10 13:44:06 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-10 13:44:06 +0000 | 
| commit | 7ab83427af0f77b59941ceba41d509d7d097b065 (patch) | |
| tree | cc41c05b1db454e3d802f34df75e636ee922ad87 /lib/CodeGen/TargetLoweringBase.cpp | |
| parent | d288ef4c1788d3a951a7558c68312c2d320612b1 (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/TargetLoweringBase.cpp')
| -rw-r--r-- | lib/CodeGen/TargetLoweringBase.cpp | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/lib/CodeGen/TargetLoweringBase.cpp b/lib/CodeGen/TargetLoweringBase.cpp index c43a5e18ad23..581cfaf60755 100644 --- a/lib/CodeGen/TargetLoweringBase.cpp +++ b/lib/CodeGen/TargetLoweringBase.cpp @@ -11,7 +11,6 @@  //  //===----------------------------------------------------------------------===// -#include "llvm/Target/TargetLowering.h"  #include "llvm/ADT/BitVector.h"  #include "llvm/ADT/STLExtras.h"  #include "llvm/ADT/StringExtras.h" @@ -34,6 +33,7 @@  #include "llvm/Support/CommandLine.h"  #include "llvm/Support/ErrorHandling.h"  #include "llvm/Support/MathExtras.h" +#include "llvm/Target/TargetLowering.h"  #include "llvm/Target/TargetLoweringObjectFile.h"  #include "llvm/Target/TargetMachine.h"  #include "llvm/Target/TargetRegisterInfo.h" @@ -1637,8 +1637,10 @@ void llvm::GetReturnInfo(Type *ReturnType, AttributeList attr,          VT = MinVT;      } -    unsigned NumParts = TLI.getNumRegisters(ReturnType->getContext(), VT); -    MVT PartVT = TLI.getRegisterType(ReturnType->getContext(), VT); +    unsigned NumParts = +        TLI.getNumRegistersForCallingConv(ReturnType->getContext(), VT); +    MVT PartVT = +        TLI.getRegisterTypeForCallingConv(ReturnType->getContext(), VT);      // 'inreg' on function refers to return value      ISD::ArgFlagsTy Flags = ISD::ArgFlagsTy(); | 
