Skip to content

Commit dd74fdc

Browse files
committed
Fix merge
1 parent a04f2e0 commit dd74fdc

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

llvm/include/llvm/CodeGen/LibcallLoweringInfo.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

llvm/include/llvm/IR/RuntimeLibcalls.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)