[LLVM] Resolve layer violation in BitcodeWriter
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 31 Jan 2022 23:58:35 +0000 (18:58 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 1 Feb 2022 00:01:08 +0000 (19:01 -0500)
commit4a780aa13ee5e1c8268de54ef946200a270127b9
treef835282d6f499ed05d63813f231291661d11f019
parent7a836ba3c5f2bdbd8b802a205f21b477ef91963d
[LLVM] Resolve layer violation in BitcodeWriter

Summary:
The changes introduced in D116542 added a dependency on TransformUtils
to use the `appendToCompilerUsed` method. This created a circular
dependency. This patch simply copies the needed function locally to
remove the dependency.
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/Bitcode/Writer/CMakeLists.txt