[Hexagon] Keep the bare getSubtargetImpl for now
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 25 Mar 2015 19:51:52 +0000 (19:51 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 25 Mar 2015 19:51:52 +0000 (19:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233206 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonTargetMachine.h

index 5774f7e195b0fb23d2fb10ed7f8b57bc6f41b824..44a5aea3c95e4ac0f90746b0ac519edacb045247 100644 (file)
@@ -32,6 +32,9 @@ public:
                        Reloc::Model RM, CodeModel::Model CM,
                        CodeGenOpt::Level OL);
   ~HexagonTargetMachine() override;
                        Reloc::Model RM, CodeModel::Model CM,
                        CodeGenOpt::Level OL);
   ~HexagonTargetMachine() override;
+  const HexagonSubtarget *getSubtargetImpl() const {
+    return &Subtarget;
+  }
   const HexagonSubtarget *getSubtargetImpl(const Function &) const override {
     return &Subtarget;
   }
   const HexagonSubtarget *getSubtargetImpl(const Function &) const override {
     return &Subtarget;
   }