diff options
author | Nicolas Abram Lujan <abramlujan@gmail.com> | 2022-05-16 10:51:51 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-05-16 10:53:46 +0200 |
commit | 436bbce7657df830dcebd16b2ad675be56f58681 (patch) | |
tree | f1cbffcd44be80ff59d224474cc3fbf993ee271f /lldb/source/Commands/CommandObjectScript.cpp | |
parent | c1af2d329f85f8b14efd22887914517fd6058be9 (diff) | |
download | llvm-436bbce7657df830dcebd16b2ad675be56f58681.zip llvm-436bbce7657df830dcebd16b2ad675be56f58681.tar.gz llvm-436bbce7657df830dcebd16b2ad675be56f58681.tar.bz2 |
[llvm-c] Add functions for enabling and creating opaque pointers
This is based on https://reviews.llvm.org/D125168 which adds a
wrapper to allow use of opaque pointers from the C API.
I added an opaque pointer mode test to echo.ll, and to fix assertions
that forbid the use of mixed typed and opaque pointers that were
triggering in it I had to also add wrappers for setOpaquePointers()
and isOpaquePointer().
I also changed echo.ll to remove a bitcast i32* %x to i8*, because
passing it through llvm-as and llvm-dis was generating a
%0 = bitcast ptr %x to ptr, but when building that same bitcast in
echo.cpp it was getting elided by IRBuilderBase::CreateCast
(https://github.com/llvm/llvm-project/blob/08ac66124874d70dab63c731da0244f9e29ef168/llvm/include/llvm/IR/IRBuilder.h#L1998-L1999).
Differential Revision: https://reviews.llvm.org/D125183
Diffstat (limited to 'lldb/source/Commands/CommandObjectScript.cpp')
0 files changed, 0 insertions, 0 deletions