mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Update some AliasAnalysis pass docs for getAdjustedAnalysisPointer.
Patch by George Burgess. llvm-svn: 209467
This commit is contained in:
parent
7d507483f4
commit
47220b55da
@ -246,6 +246,20 @@ analysis run method (``run`` for a ``Pass``, ``runOnFunction`` for a
|
||||
return false;
|
||||
}
|
||||
|
||||
Required methods to override
|
||||
----------------------------
|
||||
|
||||
You must override the ``getAdjustedAnalysisPointer`` method on all subclasses
|
||||
of ``AliasAnalysis``. An example implementation of this method would look like:
|
||||
|
||||
.. code-block:: c++
|
||||
|
||||
void *getAdjustedAnalysisPointer(const void* ID) override {
|
||||
if (ID == &AliasAnalysis::ID)
|
||||
return (AliasAnalysis*)this;
|
||||
return this;
|
||||
}
|
||||
|
||||
Interfaces which may be specified
|
||||
---------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user