[LegacyPM] Remove unused getAdjustedAnalysisPointer() method (NFC) (#145738)

This never actually gets overridden and always returns this, so drop it.

Noticed this looking into why the pass vtables are so huge.
This commit is contained in:
Nikita Popov
2025-06-26 09:04:07 +02:00
committed by GitHub
parent 9ccf613b34
commit 5fb0ae1a5b
4 changed files with 3 additions and 44 deletions

View File

@@ -256,20 +256,6 @@ 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
---------------------------------