diff options
author | David Tweed <david.tweed@arm.com> | 2013-01-09 16:21:47 +0000 |
---|---|---|
committer | David Tweed <david.tweed@arm.com> | 2013-01-09 16:21:47 +0000 |
commit | 73b984530f42d1b829a8de8824ae354a133d998a (patch) | |
tree | f4af4638082114fde684a39f49bc4c72c1f42199 /docs/doxygen.intro | |
parent | a7303360aea203d0f58f77ac43287f5b98c7cbe6 (diff) | |
download | external_llvm-73b984530f42d1b829a8de8824ae354a133d998a.zip external_llvm-73b984530f42d1b829a8de8824ae354a133d998a.tar.gz external_llvm-73b984530f42d1b829a8de8824ae354a133d998a.tar.bz2 |
For some LLVM-as-library uses it is convenient to create a
subclass of TargetMachine which "forwards" all operations to an
existing internal TargetMachine member variable. In the usage context the
specific-machine class derived from TargetMachine is not visible,
only a reference to the generic base class TargetMachine. Although
getSubtargetImpl() is public in specific-machine classes derived from
TargetMachine, the TargetMachine class unfortunately has
getSubtargetImpl() protected (and accessing non-const members makes
abusing getSubtarget() unsuitable). Making it public in the base class
allows this forwarding pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/doxygen.intro')
0 files changed, 0 insertions, 0 deletions