================
@@ -71,6 +72,22 @@ CBufferMetadata::get(Module &M, llvm::function_ref<bool(Type 
*)> IsPadding) {
   return Result;
 }
 
+void CBufferMetadata::removeCBufferGlobalsFromUseList(Module &M) {
+
+  SmallPtrSet<GlobalVariable *, 8> CBGlobals;
+  for (const hlsl::CBufferMapping &Mapping : Mappings)
+    CBGlobals.insert(Mapping.Handle);
+
+  llvm::removeFromUsedLists(M, [&](Constant *C) -> bool {
----------------
mahesh-attarde wrote:

Hi @hekota , ` llvm::removeFromUsedLists` use here breaks shared library build 
due to undefined reference.
Since mostly llvm builds care about static archive, locally I have to use 
shared lib.
Problem adding dependency is it creates cyclic dependency error. Have you 
encountered such problem?



https://github.com/llvm/llvm-project/pull/200312
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to