[Plugins/Process] Remove direct use of ClangASTContext from InferiorCallPOSIX
authorAlex Langford <apl@fb.com>
Wed, 11 Sep 2019 20:36:28 +0000 (20:36 +0000)
committerAlex Langford <apl@fb.com>
Wed, 11 Sep 2019 20:36:28 +0000 (20:36 +0000)
commit1b385a180250dac9a3b8aa469a242454322e76bc
treee100608341f7a50ae537b826dc4b4e100695cc87
parent6d5f0029fc06dbb9968c770a5101e109ddfa63f7
[Plugins/Process] Remove direct use of ClangASTContext from InferiorCallPOSIX

Summary:
InferiorCallPOSIX directly grabs a ClangASTContext from the Target it
has and does no error checking. I don't think these functions have a
reason to know about clang specifically. Additionally, using
`GetScratchTypeSystemForLanguage` forces us to do error checking since
it returns an Expected.

Differential Revision: https://reviews.llvm.org/D67427

llvm-svn: 371654
lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp