Fix ArchSpec::operator== to take the Triple into account as well as the Core. Also make the constructors explicit.

llvm-svn: 139761
This commit is contained in:
Jim Ingham 2011-09-15 01:07:28 +00:00
parent 995cd3a514
commit e76b036ebf
1 changed files with 3 additions and 0 deletions

View File

@ -112,7 +112,9 @@ public:
/// Constructs an ArchSpec with properties consistent with the given
/// Triple.
//------------------------------------------------------------------
explicit
ArchSpec (const llvm::Triple &triple);
explicit
ArchSpec (const char *triple_cstr, Platform *platform);
//------------------------------------------------------------------
/// Constructor over architecture name.
@ -120,6 +122,7 @@ public:
/// Constructs an ArchSpec with properties consistent with the given
/// object type and architecture name.
//------------------------------------------------------------------
explicit
ArchSpec (ArchitectureType arch_type,
uint32_t cpu_type,
uint32_t cpu_subtype);