File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -50,16 +50,16 @@ class LibcallLoweringInfo {
5050 return RTLCI.LibcallImplCallingConvs [Call];
5151 }
5252
53- // / Return a function name compatible with RTLIB::MEMCPY, or nullptr if fully
54- // / unsupported.
55- LLVM_ABI StringRef getMemcpyName () const {
53+ // / Return a function impl compatible with RTLIB::MEMCPY, or
54+ // / RTLIB::Unsupported if fully unsupported.
55+ RTLIB::LibcallImpl getMemcpyImpl () const {
5656 RTLIB::LibcallImpl Memcpy = getLibcallImpl (RTLIB::MEMCPY);
5757 if (Memcpy == RTLIB::Unsupported) {
5858 // Fallback to memmove if memcpy isn't available.
59- return getLibcallName (RTLIB::MEMMOVE);
59+ return getLibcallImpl (RTLIB::MEMMOVE);
6060 }
6161
62- return RTLIB::RuntimeLibcallsInfo::getLibcallImplName ( Memcpy) ;
62+ return Memcpy;
6363 }
6464};
6565
Original file line number Diff line number Diff line change @@ -114,17 +114,6 @@ struct RuntimeLibcallsInfo {
114114 return ImplToLibcall[Impl];
115115 }
116116
117- // / Return a function name compatible with RTLIB::MEMCPY, or nullptr if fully
118- // / unsupported.
119- RTLIB::LibcallImpl getMemcpyImpl () const {
120- RTLIB::LibcallImpl Memcpy = getLibcallImpl (RTLIB::MEMCPY);
121- if (Memcpy != RTLIB::Unsupported)
122- return Memcpy;
123-
124- // Fallback to memmove if memcpy isn't available.
125- return getLibcallImpl (RTLIB::MEMMOVE);
126- }
127-
128117 unsigned getNumAvailableLibcallImpls () const {
129118 return AvailableLibcallImpls.count ();
130119 }
You can’t perform that action at this time.
0 commit comments