summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetMachine.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-07-25 22:21:08 +0000
committerEric Christopher <echristo@gmail.com>2017-07-25 22:21:08 +0000
commit97ae58686fb1fe9873b3742b014b003cb89cd17f (patch)
tree75fbdb481a5ae84b099a6cda7a5ea647ce0a5110 /llvm/lib/Target/X86/X86TargetMachine.h
parent9ddcf8e6ac76a7f76d0ed6a9a0b98b2dc0f38c2d (diff)
downloadbcm5719-llvm-97ae58686fb1fe9873b3742b014b003cb89cd17f.tar.gz
bcm5719-llvm-97ae58686fb1fe9873b3742b014b003cb89cd17f.zip
Update the comments on default subtargets based on feedback.
llvm-svn: 309041
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.h')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.h b/llvm/lib/Target/X86/X86TargetMachine.h
index c16207973b3..617cec26567 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.h
+++ b/llvm/lib/Target/X86/X86TargetMachine.h
@@ -40,8 +40,9 @@ 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.
+ // DO NOT IMPLEMENT: There is no such thing as a valid default subtarget,
+ // subtargets are per-function entities based on the target-specific
+ // attributes of each function.
const X86Subtarget *getSubtargetImpl() const = delete;
TargetIRAnalysis getTargetIRAnalysis() override;
OpenPOWER on IntegriCloud