Skip to content

Commit f57d03b

Browse files
committed
RuntimeLibcalls: Fix missing const on getLibcallNames
This is made simpler by just returning the array ref instead of the fancy range.
1 parent 678cdd6 commit f57d03b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ struct RuntimeLibcallsInfo {
6868
return LibcallCallingConvs[Call];
6969
}
7070

71-
iterator_range<const char **> getLibcallNames() {
72-
return llvm::make_range(LibcallRoutineNames,
73-
LibcallRoutineNames + RTLIB::UNKNOWN_LIBCALL);
74-
}
71+
ArrayRef<const char *> getLibcallNames() const { return LibcallRoutineNames; }
7572

7673
private:
7774
/// Stores the name each libcall.

0 commit comments

Comments
 (0)