[ARM64][MC] Set the default CPU to cyclone when initilizating the MC layer.

This matches that ARM64Subtarget does for now.

This is related to <rdar://problem/16573920>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Quentin Colombet 2014-04-14 21:25:53 +00:00
parent 7a69489242
commit 05620e5439

View File

@ -43,6 +43,12 @@ static MCInstrInfo *createARM64MCInstrInfo() {
static MCSubtargetInfo *createARM64MCSubtargetInfo(StringRef TT, StringRef CPU,
StringRef FS) {
MCSubtargetInfo *X = new MCSubtargetInfo();
// FIXME: Make this darwin-only.
if (CPU.empty())
// We default to Cyclone for now, on Darwin.
CPU = "cyclone";
InitARM64MCSubtargetInfo(X, TT, CPU, FS);
return X;
}