[llvm-commits] Move register tables from MipsDisassembler

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Jun 1 08:35:42 PDT 2012


On Jun 1, 2012, at 5:20 AM, Medic, Vladimir wrote:

> Hi Jakob,
> if I'm not mistaken, these are defined inside of anonymous namespace and are not visible outside _Target_GenRegisterInfo.inc. If I try to include this in more than one module I get link error.

Right. You are supposed to access them via the interface MCRegisterInfo makes available.

You don't say where you need this, but in the Mips code generator library, there are also global variables available: Mips::CPURegsRegClass etc. Outside that library, you need an MCRegisterInfo pointer. Use that to get an MCRegisterClass pointer.

/jakob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120601/6f04f656/attachment.html>


More information about the llvm-commits mailing list