Skip to content

Commit 7f45ef6

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 bfbf5d5 commit 7f45ef6

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
@@ -81,10 +81,7 @@ struct RuntimeLibcallsInfo {
8181
return LibcallCallingConvs[Call];
8282
}
8383

84-
iterator_range<const char **> getLibcallNames() {
85-
return llvm::make_range(LibcallRoutineNames,
86-
LibcallRoutineNames + RTLIB::UNKNOWN_LIBCALL);
87-
}
84+
ArrayRef<const char *> getLibcallNames() const { return LibcallRoutineNames; }
8885

8986
private:
9087
/// Stores the name each libcall.

0 commit comments

Comments
 (0)