diff --git a/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c b/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c --- a/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c +++ b/llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c @@ -91,7 +91,7 @@ // Use TransformLayer to set IR transform. { LLVMOrcIRTransformLayerRef TL = LLVMOrcLLJITGetIRTransformLayer(J); - LLVMOrcLLJITIRTransformLayerSetTransform(TL, *transform, NULL); + LLVMOrcIRTransformLayerSetTransform(TL, *transform, NULL); } // Create our demo module. diff --git a/llvm/include/llvm-c/Orc.h b/llvm/include/llvm-c/Orc.h --- a/llvm/include/llvm-c/Orc.h +++ b/llvm/include/llvm-c/Orc.h @@ -338,7 +338,7 @@ * management. * * Clients can call LLVMOrcLLJITGetIRTransformLayer to obtain the transform - * layer of a LLJIT instance, and use LLVMOrcLLJITIRTransformLayerSetTransform + * layer of a LLJIT instance, and use LLVMOrcIRTransformLayerSetTransform * to set the function. This can be used to override the default transform * layer. */ @@ -783,7 +783,7 @@ * Set the transform function of the provided transform layer, passing through a * pointer to user provided context. */ -void LLVMOrcLLJITIRTransformLayerSetTransform( +void LLVMOrcIRTransformLayerSetTransform( LLVMOrcIRTransformLayerRef IRTransformLayer, LLVMOrcIRTransformLayerTransformFunction TransformFunction, void *Ctx); diff --git a/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp b/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp --- a/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp +++ b/llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp @@ -526,7 +526,7 @@ delete unwrap(ObjLayer); } -void LLVMOrcLLJITIRTransformLayerSetTransform( +void LLVMOrcIRTransformLayerSetTransform( LLVMOrcIRTransformLayerRef IRTransformLayer, LLVMOrcIRTransformLayerTransformFunction TransformFunction, void *Ctx) { unwrap(IRTransformLayer)