110e730a2SDan Gohman //=- WebAssemblyMachineFunctionInfo.cpp - WebAssembly Machine Function Info -=//
210e730a2SDan Gohman //
310e730a2SDan Gohman //                     The LLVM Compiler Infrastructure
410e730a2SDan Gohman //
510e730a2SDan Gohman // This file is distributed under the University of Illinois Open Source
610e730a2SDan Gohman // License. See LICENSE.TXT for details.
710e730a2SDan Gohman //
810e730a2SDan Gohman //===----------------------------------------------------------------------===//
910e730a2SDan Gohman ///
1010e730a2SDan Gohman /// \file
1110e730a2SDan Gohman /// \brief This file implements WebAssembly-specific per-machine-function
1210e730a2SDan Gohman /// information.
1310e730a2SDan Gohman ///
1410e730a2SDan Gohman //===----------------------------------------------------------------------===//
1510e730a2SDan Gohman 
1610e730a2SDan Gohman #include "WebAssemblyMachineFunctionInfo.h"
1710e730a2SDan Gohman using namespace llvm;
1810e730a2SDan Gohman 
1910e730a2SDan Gohman WebAssemblyFunctionInfo::~WebAssemblyFunctionInfo() {}
20*058fce54SDan Gohman 
21*058fce54SDan Gohman void WebAssemblyFunctionInfo::initWARegs() {
22*058fce54SDan Gohman   assert(WARegs.empty());
23*058fce54SDan Gohman   unsigned Reg = UnusedReg;
24*058fce54SDan Gohman   WARegs.resize(MF.getRegInfo().getNumVirtRegs(), Reg);
25*058fce54SDan Gohman }
26