MachineModuleInfo: Remove unused function; NFC

Remove the unused setModule() function; it would be dangerous if someone
actually used it as it wouldn't reset/recompute various other module
related data.

llvm-svn: 320881
This commit is contained in:
Matthias Braun 2017-12-15 22:22:42 +00:00
parent c018115480
commit 89488fffdd
1 changed files with 0 additions and 1 deletions

View File

@ -155,7 +155,6 @@ public:
const MCContext &getContext() const { return Context; } const MCContext &getContext() const { return Context; }
MCContext &getContext() { return Context; } MCContext &getContext() { return Context; }
void setModule(const Module *M) { TheModule = M; }
const Module *getModule() const { return TheModule; } const Module *getModule() const { return TheModule; }
/// Returns the MachineFunction constructed for the IR function \p F. /// Returns the MachineFunction constructed for the IR function \p F.