Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Remove reallocate_inplace from memory analysis #81

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions include/llvm/Analysis/TargetLibraryInfo.def
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,6 @@ TLI_DEFINE_STRING_INTERNAL("__rust_deallocate")
TLI_DEFINE_ENUM_INTERNAL(rust_reallocate)
TLI_DEFINE_STRING_INTERNAL("__rust_reallocate")

/// uint8_t *__rust_reallocate_inplace(uint8_t *ptr, size_t oldsz, size_t newsz, size_t align)
TLI_DEFINE_ENUM_INTERNAL(rust_reallocate_inplace)
TLI_DEFINE_STRING_INTERNAL("__rust_reallocate_inplace")

/// double __sincospi_stret(double x);
TLI_DEFINE_ENUM_INTERNAL(sincospi_stret)
TLI_DEFINE_STRING_INTERNAL("__sincospi_stret")
Expand Down
1 change: 0 additions & 1 deletion lib/Analysis/MemoryBuiltins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ static const std::pair<LibFunc::Func, AllocFnsTy> AllocationFnData[] = {
{LibFunc::rust_allocate, {MallocLike, 2, 0, -1}},
{LibFunc::rust_allocate_zeroed, {MallocLike, 2, 0, -1}},
{LibFunc::rust_reallocate, {ReallocLike, 4, 2, -1}},
{LibFunc::rust_reallocate_inplace, {ReallocLike, 4, 2, -1}}
// TODO: Handle "int posix_memalign(void **, size_t, size_t)"
};

Expand Down