static Triple getTriple(const object::MachOObjectFile &Obj) { Triple ThumbTriple; Triple T = Obj.getArch(nullptr, &ThumbTriple); return ThumbTriple.str().empty() ? T : ThumbTriple; }
static std::string getArchName(const object::MachOObjectFile &Obj) { Triple ThumbTriple; Triple T = Obj.getArch(nullptr, &ThumbTriple); return T.getArchName(); }
static Triple getTriple(const object::MachOObjectFile &Obj) { Triple TheTriple("unknown-unknown-unknown"); TheTriple.setArch(Triple::ArchType(Obj.getArch())); TheTriple.setObjectFormat(Triple::MachO); return TheTriple; }