llvm/IR/CallSite.h: No such file or directory

Hi, I followed the https://llvm.org/docs/GettingStarted.html#checkout instruction here and did a a make and make install. When I tried compile a file with "#include “llvm/IR/CallSite.h”, it shows no such file or directory. So I went to here https://github.com/llvm/llvm-project/tree/master/llvm/include/llvm/IR to check it the file exists and it looks like no CallSite.h existed. Did I do something wrong? or the file is really missed.

CallSite has been deprecated and subsequently removed from upstream. The commit that deleted the file can be found here: [CallSite removal] Rename CallSite.h to AbstractCallSite.h. NFC · llvm/llvm-project@2c24051 · GitHub

If you search the history for commits tagged with [CallSite removal] you should get a more complete overview of the changes involved.

1 Like