diff options
author | Eric Christopher <echristo@gmail.com> | 2017-07-14 04:33:43 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-07-14 04:33:43 +0000 |
commit | 4e332c7cf1b32cc2227d1d70c917c6838774efbe (patch) | |
tree | b647ecdaa210cebec6fc8f250ff12d3d5968bb94 /llvm/lib/Target/X86/X86TargetMachine.h | |
parent | e7ecbbcd6283a27222315dd3b310d91d2054a6b5 (diff) | |
download | bcm5719-llvm-4e332c7cf1b32cc2227d1d70c917c6838774efbe.tar.gz bcm5719-llvm-4e332c7cf1b32cc2227d1d70c917c6838774efbe.zip |
Add a set of comments explaining why getSubtargetImpl() is deleted on these targets.
llvm-svn: 307999
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.h')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetMachine.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.h b/llvm/lib/Target/X86/X86TargetMachine.h index aaa6d58bd13..c16207973b3 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.h +++ b/llvm/lib/Target/X86/X86TargetMachine.h @@ -40,6 +40,8 @@ public: ~X86TargetMachine() override; const X86Subtarget *getSubtargetImpl(const Function &F) const override; + // The no argument getSubtargetImpl, while it exists on some targets, is + // deprecated and should not be used. const X86Subtarget *getSubtargetImpl() const = delete; TargetIRAnalysis getTargetIRAnalysis() override; |