Lines Matching refs:Arch
17 #include "Arch.h"
23 std::string to_string(const Arch& arch) {
24 switch (arch) {
25 case Arch::arm:
28 case Arch::arm64:
31 case Arch::mips:
34 case Arch::mips64:
37 case Arch::x86:
40 case Arch::x86_64:
44 errx(1, "unknown arch '%zu'", size_t(arch));
47 Arch arch_from_string(const std::string& name) {
49 return Arch::arm;
51 return Arch::arm64;
53 return Arch::mips;
55 return Arch::mips64;
57 return Arch::x86;
59 return Arch::x86_64;