add x86_64 to be alias of x86-64

This commit is contained in:
Anton Mitrokhin
2015-04-16 14:42:34 +03:00
parent af18f7cc97
commit b5293067fc
2 changed files with 5 additions and 1 deletions

View File

@@ -495,6 +495,10 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic) :
arch = "x86-64";
}
// Define arch alias
if (std::string(arch) == "x86_64")
arch = "x86-64";
bool error = false;
// Make sure the target architecture is a known one; print an error

View File

@@ -2869,7 +2869,7 @@ lCreateDispatchFunction(llvm::Module *module, llvm::Function *setISAFunc,
// ISA and sets __system_best_isa, if it hasn't been set yet.
llvm::CallInst::Create(setISAFunc, "", bblock);
// Now we can load the system's ISA enuemrant
// Now we can load the system's ISA enumerant
llvm::Value *systemISA =
new llvm::LoadInst(systemBestISAPtr, "system_isa", bblock);