@Test public void testGetTargetsMap() throws Exception { Map<String, Target> map = Target.getTargetsMap(); assertFalse(map.isEmpty()); Target arm = map.get("arm"); assertNotNull(arm); Target thumb = map.get("thumb"); assertNotNull(thumb); Target x86 = map.get("x86"); assertNotNull(x86); Target x86_64 = map.get("x86-64"); assertNotNull(x86_64); }
public static Map<String, Target> getTargetsMap() { Map<String, Target> result = new TreeMap<String, Target>(); for (Target target : getTargets()) { result.put(target.name, target); } return result; }
Target { public static Map<String, Target> getTargetsMap() { Map<String, Target> result = new TreeMap<String, Target>(); for (Target target : getTargets()) { result.put(target.name, target); } return result; } }
Target { public static Map<String, Target> getTargetsMap() { Map<String, Target> result = new TreeMap<String, Target>(); for (Target target : getTargets()) { result.put(target.name, target); } return result; } Target(TargetRef ref); }
Target { public static Map<String, Target> getTargetsMap() { Map<String, Target> result = new TreeMap<String, Target>(); for (Target target : getTargets()) { result.put(target.name, target); } return result; } 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 Map<String, Target> getTargetsMap() { Map<String, Target> result = new TreeMap<String, Target>(); for (Target target : getTargets()) { result.put(target.name, target); } return result; } 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();  }