[all-commits] [llvm/llvm-project] 573a9b: [llvm-c] Avoid deprecated APIs in tests

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Dec 4 09:58:24 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 573a9bc4ad7fed92db5105ea75e0f9573712f973
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2021-12-04 (Sat, 04 Dec 2021)

  Changed paths:
    M llvm/include/llvm-c/Core.h
    M llvm/lib/IR/Core.cpp
    M llvm/tools/llvm-c-test/calc.c
    M llvm/tools/llvm-c-test/echo.cpp

  Log Message:
  [llvm-c] Avoid deprecated APIs in tests

Avoid the use of deprecated (opaque pointer incompatible) APIs
in C API tests, in preparation for header deprecation. Add a
LLVMGetGEPSourceElementType() to cover a bit of functionality
that is necessary for the echo test.

This change is split out from https://reviews.llvm.org/D114936.

More information about the All-commits mailing list