Differentiate ppc and i386.

This commit is contained in:
Steve Checkoway
2006-08-05 02:44:17 +00:00
parent 5eb4341786
commit 4dc48720ff
2 changed files with 13 additions and 1 deletions
@@ -133,6 +133,18 @@ ArchHooks_darwin::~ArchHooks_darwin()
#endif #endif
} }
RString ArchHooks_darwin::GetArchName() const
{
#if defined(__ppc__)
return "Mac OS X (ppc)";
#elif defined(__i386__)
return "Mac OS X (i386)";
#else
#error What arch?
#endif
}
RString ArchHooks_darwin::GetMachineId() const RString ArchHooks_darwin::GetMachineId() const
{ {
RString ret; RString ret;
@@ -9,7 +9,7 @@ class ArchHooks_darwin : public ArchHooks
public: public:
ArchHooks_darwin(); ArchHooks_darwin();
~ArchHooks_darwin(); ~ArchHooks_darwin();
RString GetArchName() const { return "OS X"; } RString GetArchName() const;
RString GetMachineId() const; RString GetMachineId() const;
void DumpDebugInfo(); void DumpDebugInfo();
RString GetPreferredLanguage(); RString GetPreferredLanguage();