[llvm] ced7e4f - Remove vestiges of removed OCaml modules

Alan Hu via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 10:28:09 PDT 2023


Author: Alan Hu
Date: 2023-06-05T13:27:42-04:00
New Revision: ced7e4f53b56ded78e5c2b2daa7e03ec4eb377dd

URL: https://github.com/llvm/llvm-project/commit/ced7e4f53b56ded78e5c2b2daa7e03ec4eb377dd
DIFF: https://github.com/llvm/llvm-project/commit/ced7e4f53b56ded78e5c2b2daa7e03ec4eb377dd.diff

LOG: Remove vestiges of removed OCaml modules

Several OCaml modules using the old PassManager API were removed in
https://reviews.llvm.org/D144751, but the META file still needed to be
updated to remove them. This diff also removes an unused macro definition
related to the module removals.

Reviewed By: nikic

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

Added: 
    

Modified: 
    llvm/bindings/ocaml/llvm/META.llvm.in
    llvm/bindings/ocaml/llvm/llvm_ocaml.h

Removed: 
    


################################################################################
diff  --git a/llvm/bindings/ocaml/llvm/META.llvm.in b/llvm/bindings/ocaml/llvm/META.llvm.in
index 991bbc0600980..7c87039ea4654 100644
--- a/llvm/bindings/ocaml/llvm/META.llvm.in
+++ b/llvm/bindings/ocaml/llvm/META.llvm.in
@@ -37,14 +37,6 @@ package "executionengine" (
     archive(native) = "llvm_executionengine.cmxa"
 )
 
-package "ipo" (
-    requires = "llvm"
-    version  = "@PACKAGE_VERSION@"
-    description = "IPO Transforms for LLVM"
-    archive(byte) = "llvm_ipo.cma"
-    archive(native) = "llvm_ipo.cmxa"
-)
-
 package "debuginfo" (
     requires = "llvm"
     version = "@PACKAGE_VERSION@"
@@ -61,14 +53,6 @@ package "irreader" (
     archive(native) = "llvm_irreader.cmxa"
 )
 
-package "scalar_opts" (
-    requires = "llvm"
-    version = "@PACKAGE_VERSION@"
-    description = "Scalar Transforms for LLVM"
-    archive(byte) = "llvm_scalar_opts.cma"
-    archive(native) = "llvm_scalar_opts.cmxa"
-)
-
 package "transform_utils" (
     requires = "llvm"
     version = "@PACKAGE_VERSION@"
@@ -77,22 +61,6 @@ package "transform_utils" (
     archive(native) = "llvm_transform_utils.cmxa"
 )
 
-package "vectorize" (
-    requires = "llvm"
-    version = "@PACKAGE_VERSION@"
-    description = "Vector Transforms for LLVM"
-    archive(byte) = "llvm_vectorize.cma"
-    archive(native) = "llvm_vectorize.cmxa"
-)
-
-package "passmgr_builder" (
-    requires = "llvm"
-    version = "@PACKAGE_VERSION@"
-    description = "Pass Manager Builder for LLVM"
-    archive(byte) = "llvm_passmgr_builder.cma"
-    archive(native) = "llvm_passmgr_builder.cmxa"
-)
-
 package "target" (
     requires = "llvm"
     version  = "@PACKAGE_VERSION@"

diff  --git a/llvm/bindings/ocaml/llvm/llvm_ocaml.h b/llvm/bindings/ocaml/llvm/llvm_ocaml.h
index 3790a3638d01d..a3791744e647b 100644
--- a/llvm/bindings/ocaml/llvm/llvm_ocaml.h
+++ b/llvm/bindings/ocaml/llvm/llvm_ocaml.h
@@ -56,7 +56,6 @@ void *from_val_array(value Elements);
 #define Use_val(v) ((LLVMUseRef)from_val(v))
 #define BasicBlock_val(v) ((LLVMBasicBlockRef)from_val(v))
 #define MemoryBuffer_val(v) ((LLVMMemoryBufferRef)from_val(v))
-#define PassManager_val(v) ((LLVMPassManagerRef)from_val(v))
 
 /* Convert a C pointer to an OCaml option */
 value ptr_to_option(void *Ptr);


        


More information about the llvm-commits mailing list