Move the test compiler setup in a common place. NFCI
commit888d06dfb8b55c4fd41fa4febe22c6fc4111c118
authorVassil Vassilev <v.g.vassilev@gmail.com>
Sat, 14 Nov 2020 21:29:18 +0000 (14 21:29 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Sat, 14 Nov 2020 21:30:30 +0000 (14 21:30 +0000)
treeda3df5500f2b3f8837c389d7e56537405b6a71eb
parenta70b511e7802a082ea174c53a65ba78a1cec893f
Move the test compiler setup in a common place. NFCI

This patch reduces the copy paste in the unittest/CodeGen folder by moving the
common compiler setup phase in a header file.

Differential revision: https://reviews.llvm.org/D91061
clang/unittests/CodeGen/BufferSourceTest.cpp
clang/unittests/CodeGen/CodeGenExternalTest.cpp
clang/unittests/CodeGen/IncrementalProcessingTest.cpp
clang/unittests/CodeGen/TBAAMetadataTest.cpp