diff options
author | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2023-11-15 21:07:56 +0100 |
---|---|---|
committer | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2023-11-15 21:16:32 +0100 |
commit | f205950e5ca6dc98ce839af9e7ab0ffe767dbe55 (patch) | |
tree | 961fbea8cf6a970241637331eeb2fda40d76680b /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 06a65ce500a632048db1058de9ca61072004a640 (diff) | |
download | llvm-f205950e5ca6dc98ce839af9e7ab0ffe767dbe55.zip llvm-f205950e5ca6dc98ce839af9e7ab0ffe767dbe55.tar.gz llvm-f205950e5ca6dc98ce839af9e7ab0ffe767dbe55.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions