Class LlvmGoTarget

java.lang.Object
org.ek9lang.compiler.backend.llvm.LlvmTarget
org.ek9lang.compiler.backend.llvm.go.LlvmGoTarget
All Implemented Interfaces:
Target

public class LlvmGoTarget extends LlvmTarget
Checks for golang target architecture.
  • Constructor Details

    • LlvmGoTarget

      public LlvmGoTarget()
  • Method Details

    • getArchitecture

      public TargetArchitecture getArchitecture()
      Description copied from interface: Target
      The Target Architecture for the output.
      Returns:
      One of the valid target architectures.
    • isSupported

      public boolean isSupported()
      Description copied from interface: Target
      Is this target actually supported. While the developer may have specified a valid TargetArchitecture, the necessary components may not be available. So for example, if the developer had specified LLVM_GO/LLVM_CPP as the target output (and hence some form of binary as a result), it will be necessary for that developer to have llvm installed (at the right level) and to be accessible.
      Returns:
      true if supported and output can be generated, false otherwise.