Files
clang-p2996/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
Bjorn Pettersson f205950e5c [BuildLibCalls] Use getPtrTy instead of getInt8PtrTy
Stop using getInt8PtrTy() when referring to char* types when
building libcalls. As in many other files we can simply use
getPtrTy() instead, as part of transition into opaque pointers.

This patch is using thing like
  Type *CharPtrTy = B.getPtrTy();
  Type *VoidPtrTy = B.getPtrTy();
in several places, to give the pointer type a name.
The idea is to make the mapping to the libc function prototypes clear.
2023-11-15 21:16:32 +01:00

67 KiB