[llvm] r271887 - Remove dead function with incredibly broken assert.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 6 05:10:57 PDT 2016
Author: d0k
Date: Mon Jun 6 07:10:42 2016
New Revision: 271887
URL: http://llvm.org/viewvc/llvm-project?rev=271887&view=rev
Log:
Remove dead function with incredibly broken assert.
Found by clang-tidy's misc-assert-side-effect.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h?rev=271887&r1=271886&r2=271887&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h Mon Jun 6 07:10:42 2016
@@ -80,12 +80,6 @@ class WebAssemblyFunctionInfo final : pu
assert(TargetRegisterInfo::virtReg2Index(Reg) < WARegs.size());
return WARegs[TargetRegisterInfo::virtReg2Index(Reg)];
}
- // If new virtual registers are created after initWARegs has been called,
- // this function can be used to add WebAssembly register mappings for them.
- void addWAReg(unsigned VReg, unsigned WAReg) {
- assert(VReg = WARegs.size());
- WARegs.push_back(WAReg);
- }
// For a given stackified WAReg, return the id number to print with push/pop.
static unsigned getWARegStackId(unsigned Reg) {
More information about the llvm-commits
mailing list