[Orc] Fix name of LLVMOrcIRTransformLayerSetTransform

In https://reviews.llvm.org/D103855 we added access to IRTransformLayer, but I
just noticed that the function name is following the wrong pattern.

Differential Revision: https://reviews.llvm.org/D104840
This commit is contained in:
Valentin Churavy 2021-06-30 21:39:34 +02:00
parent 24a36ce58b
commit 69e0f790e0
No known key found for this signature in database
GPG Key ID: 02E09F0CCD46FF9D
3 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ int main(int argc, char *argv[]) {
// Use TransformLayer to set IR transform.
{
LLVMOrcIRTransformLayerRef TL = LLVMOrcLLJITGetIRTransformLayer(J);
LLVMOrcLLJITIRTransformLayerSetTransform(TL, *transform, NULL);
LLVMOrcIRTransformLayerSetTransform(TL, *transform, NULL);
}
// Create our demo module.

View File

@ -338,7 +338,7 @@ typedef struct LLVMOrcOpaqueIRTransformLayer *LLVMOrcIRTransformLayerRef;
* 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 @@ void LLVMOrcDisposeObjectLayer(LLVMOrcObjectLayerRef ObjLayer);
* 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);

View File

@ -526,7 +526,7 @@ void LLVMOrcDisposeObjectLayer(LLVMOrcObjectLayerRef ObjLayer) {
delete unwrap(ObjLayer);
}
void LLVMOrcLLJITIRTransformLayerSetTransform(
void LLVMOrcIRTransformLayerSetTransform(
LLVMOrcIRTransformLayerRef IRTransformLayer,
LLVMOrcIRTransformLayerTransformFunction TransformFunction, void *Ctx) {
unwrap(IRTransformLayer)