Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions llvm/include/llvm/IR/RuntimeLibcalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ struct RuntimeLibcallsInfo {
return LibcallCallingConvs[Call];
}

iterator_range<const char **> getLibcallNames() {
return llvm::make_range(LibcallRoutineNames,
LibcallRoutineNames + RTLIB::UNKNOWN_LIBCALL);
ArrayRef<const char *> getLibcallNames() const {
// Trim UNKNOWN_LIBCALL from the end
return ArrayRef(LibcallRoutineNames).drop_back();
}

private:
Expand Down