public LLVMDisassembler(IDisassemblable cpu)
        {
            if (!SupportedArchitectures.ContainsKey(cpu.Architecture))
            {
                throw new ArgumentOutOfRangeException("cpu");
            }

            this.cpu = cpu;
            cache    = new Dictionary <string, IDisassembler>();
        }
        public LLVMDisassembler(IDisassemblable cpu)
        {
            if (!SupportedArchitectures.ContainsKey(cpu.Architecture))
            {
                throw new ArgumentOutOfRangeException("cpu");
            }

            this.cpu = cpu;
            cache    = new Dictionary <string, LLVMDisasWrapper>();

            Disassemble = cpu.Architecture == "arm-m" ? CortexMAddressTranslator.Wrap(LLVMDisassemble) : LLVMDisassemble;
        }
Esempio n. 3
0
 public static bool IsAvailableFor(string arch)
 {
     return(SupportedArchitectures.ContainsKey(arch));
 }