forked from OSchip/llvm-project
[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:
parent
24a36ce58b
commit
69e0f790e0
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -526,7 +526,7 @@ void LLVMOrcDisposeObjectLayer(LLVMOrcObjectLayerRef ObjLayer) {
|
|||
delete unwrap(ObjLayer);
|
||||
}
|
||||
|
||||
void LLVMOrcLLJITIRTransformLayerSetTransform(
|
||||
void LLVMOrcIRTransformLayerSetTransform(
|
||||
LLVMOrcIRTransformLayerRef IRTransformLayer,
|
||||
LLVMOrcIRTransformLayerTransformFunction TransformFunction, void *Ctx) {
|
||||
unwrap(IRTransformLayer)
|
||||
|
|
Loading…
Reference in New Issue