blob: 225c5d32cb5d12a7de7ab873771c2eaff263bc66 [file] [log] [blame]
Dan Gohman10e730a2015-06-29 23:51:55 +00001//=- WebAssemblyMachineFunctionInfo.cpp - WebAssembly Machine Function Info -=//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9///
10/// \file
11/// \brief This file implements WebAssembly-specific per-machine-function
12/// information.
13///
14//===----------------------------------------------------------------------===//
15
16#include "WebAssemblyMachineFunctionInfo.h"
17using namespace llvm;
18
19WebAssemblyFunctionInfo::~WebAssemblyFunctionInfo() {}
Dan Gohman058fce52015-11-13 00:21:05 +000020
21void WebAssemblyFunctionInfo::initWARegs() {
22 assert(WARegs.empty());
23 unsigned Reg = UnusedReg;
24 WARegs.resize(MF.getRegInfo().getNumVirtRegs(), Reg);
25}