@Test public void testLookupTarget() throws Exception { Target t = Target.lookupTarget("thumbv7-unknown-ios"); assertNotNull(t); assertEquals("thumb", t.getName()); assertEquals("Thumb", t.getDescription()); try { Target.lookupTarget("foobar"); fail("LlvmException expected"); } catch (LlvmException e) {} }
public static Target lookupTarget(String triple) { if (triple == null) { throw new NullPointerException("triple"); } StringOut ErrorMessage = new StringOut(); TargetRef ref = LLVM.LookupTarget(triple, ErrorMessage); if (ref == null) { throw new LlvmException(ErrorMessage.getValue().trim()); } return new Target(ref); }
Target { public static Target lookupTarget(String triple) { if (triple == null) { throw new NullPointerException("triple"); } StringOut ErrorMessage = new StringOut(); TargetRef ref = LLVM.LookupTarget(triple, ErrorMessage); if (ref == null) { throw new LlvmException(ErrorMessage.getValue().trim()); } return new Target(ref); } }
Target { public static Target lookupTarget(String triple) { if (triple == null) { throw new NullPointerException("triple"); } StringOut ErrorMessage = new StringOut(); TargetRef ref = LLVM.LookupTarget(triple, ErrorMessage); if (ref == null) { throw new LlvmException(ErrorMessage.getValue().trim()); } return new Target(ref); } Target(TargetRef ref); }
Target { public static Target lookupTarget(String triple) { if (triple == null) { throw new NullPointerException("triple"); } StringOut ErrorMessage = new StringOut(); TargetRef ref = LLVM.LookupTarget(triple, ErrorMessage); if (ref == null) { throw new LlvmException(ErrorMessage.getValue().trim()); } return new Target(ref); } Target(TargetRef ref); String getName(); String getDescription(); boolean hasJIT(); boolean hasTargetMachine(); boolean hasAsmBackend(); TargetMachine createTargetMachine(String triple); TargetMachine createTargetMachine(String triple, String cpu, String features, 
            CodeGenOptLevel optLevel, RelocMode relocMode, CodeModel codeModel); @Override int hashCode(); @Override boolean equals(Object obj); static String getHostTriple(); static Target getHostTarget(); static Target getTarget(String name); static Target lookupTarget(String triple); static List<Target> getTargets(); static Map<String, Target> getTargetsMap(); }
Target { public static Target lookupTarget(String triple) { if (triple == null) { throw new NullPointerException("triple"); } StringOut ErrorMessage = new StringOut(); TargetRef ref = LLVM.LookupTarget(triple, ErrorMessage); if (ref == null) { throw new LlvmException(ErrorMessage.getValue().trim()); } return new Target(ref); } Target(TargetRef ref); String getName(); String getDescription(); boolean hasJIT(); boolean hasTargetMachine(); boolean hasAsmBackend(); TargetMachine createTargetMachine(String triple); TargetMachine createTargetMachine(String triple, String cpu, String features, 
            CodeGenOptLevel optLevel, RelocMode relocMode, CodeModel codeModel); @Override int hashCode(); @Override boolean equals(Object obj); static String getHostTriple(); static Target getHostTarget(); static Target getTarget(String name); static Target lookupTarget(String triple); static List<Target> getTargets(); static Map<String, Target> getTargetsMap();  }