org.lwjgl.llvm.LLVMLinker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-llvm Show documentation
Show all versions of lwjgl-llvm Show documentation
A collection of modular and reusable compiler and toolchain technologies.
The newest version!
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.llvm;
import org.lwjgl.system.*;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
public class LLVMLinker {
/** Contains the function pointers loaded from {@code LLVMCore.getLibrary()}. */
public static final class Functions {
private Functions() {}
/** Function address. */
public static final long
LinkModules2 = apiGetFunctionAddress(LLVMCore.getLibrary(), "LLVMLinkModules2");
}
/**
* This enum is provided for backwards-compatibility only. It has no effect.
*
* ({@code LLVMLinkerMode})
*
* Enum values:
*
*
* - {@link #LLVMLinkerDestroySource LinkerDestroySource} - This is the default behavior.
* - {@link #LLVMLinkerPreserveSource_Removed LinkerPreserveSource_Removed} - This option has been deprecated and should not be used.
*
*/
public static final int
LLVMLinkerDestroySource = 0,
LLVMLinkerPreserveSource_Removed = 1;
protected LLVMLinker() {
throw new UnsupportedOperationException();
}
// --- [ LLVMLinkModules2 ] ---
/**
* Links the source module into the destination module.
*
* The source module is destroyed. The return value is true if an error occurred, false otherwise. Use the diagnostic handler to get any diagnostic
* message.
*/
@NativeType("LLVMBool")
public static boolean LLVMLinkModules2(@NativeType("LLVMModuleRef") long Dest, @NativeType("LLVMModuleRef") long Src) {
long __functionAddress = Functions.LinkModules2;
if (CHECKS) {
check(Dest);
check(Src);
}
return invokePPI(Dest, Src, __functionAddress) != 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy