[llvm] r320881 - MachineModuleInfo: Remove unused function; NFC
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 15 14:22:42 PST 2017
Author: matze
Date: Fri Dec 15 14:22:42 2017
New Revision: 320881
URL: http://llvm.org/viewvc/llvm-project?rev=320881&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h?rev=320881&r1=320880&r2=320881&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h Fri Dec 15 14:22:42 2017
@@ -155,7 +155,6 @@ public:
const MCContext &getContext() const { return Context; }
MCContext &getContext() { return Context; }
- void setModule(const Module *M) { TheModule = M; }
const Module *getModule() const { return TheModule; }
/// Returns the MachineFunction constructed for the IR function \p F.
More information about the llvm-commits
mailing list