diff options
author | Eric Christopher <echristo@gmail.com> | 2014-08-01 21:18:01 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-08-01 21:18:01 +0000 |
commit | 6c05d9135f13021622504d57309a559a60e8ae62 (patch) | |
tree | 292ba5c1c0954951b0bb17141c7140ac04944d31 /llvm/lib/Target/PowerPC/PPCTargetMachine.h | |
parent | 908d809b81dc0394b37ee4f2a407701f1e8d0945 (diff) | |
download | bcm5719-llvm-6c05d9135f13021622504d57309a559a60e8ae62.tar.gz bcm5719-llvm-6c05d9135f13021622504d57309a559a60e8ae62.zip |
Add a non-const subtarget returning function to the target machine
so that we can use it to get the old-style JIT out of the subtarget.
This code should be removed when the old-style JIT is removed
(imminently).
llvm-svn: 214560
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.h b/llvm/lib/Target/PowerPC/PPCTargetMachine.h index 4c7029ca7a3..e11b4681dbd 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.h +++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.h @@ -38,7 +38,7 @@ public: const PPCFrameLowering *getFrameLowering() const override { return getSubtargetImpl()->getFrameLowering(); } - PPCJITInfo *getJITInfo() override { return Subtarget.getJITInfo(); } + PPCJITInfo *getJITInfo() override { return getSubtargetImpl()->getJITInfo(); } const PPCTargetLowering *getTargetLowering() const override { return getSubtargetImpl()->getTargetLowering(); } @@ -53,6 +53,7 @@ public: return getSubtargetImpl()->getDataLayout(); } const PPCSubtarget *getSubtargetImpl() const override { return &Subtarget; } + PPCSubtarget *getSubtargetImpl() override { return &Subtarget; } const InstrItineraryData *getInstrItineraryData() const override { return &getSubtargetImpl()->getInstrItineraryData(); } |