//
//===----------------------------------------------------------------------===//
-#ifndef MIPSTARGETMACHINE_H
-#define MIPSTARGETMACHINE_H
+#ifndef LLVM_LIB_TARGET_MIPS_MIPSTARGETMACHINE_H
+#define LLVM_LIB_TARGET_MIPS_MIPSTARGETMACHINE_H
#include "MipsSubtarget.h"
#include "llvm/CodeGen/Passes.h"
return Subtarget;
return &DefaultSubtarget;
}
- MipsSubtarget *getSubtargetImpl() override {
- if (Subtarget)
- return Subtarget;
- return &DefaultSubtarget;
+ MipsSubtarget *getSubtargetImpl() {
+ return static_cast<MipsSubtarget *>(TargetMachine::getSubtargetImpl());
}
/// \brief Reset the subtarget for the Mips target.