1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Remove dead function with incredibly broken assert.

Found by clang-tidy's misc-assert-side-effect.

llvm-svn: 271887
This commit is contained in:
Benjamin Kramer 2016-06-06 12:10:42 +00:00
parent 4ea419e23b
commit 2d31039cb1

View File

@ -80,12 +80,6 @@ class WebAssemblyFunctionInfo final : public MachineFunctionInfo {
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) {