Problem Compiling AsmParser

Hi all,

I am trying to compile with a minimal TestAsmParser class, but I get the following error.

Did you include and instantiate TestGenAsmMatcher.inc ?

Hi Nakamura,

I have already added the following lines to the TestAsmParser class:

#define GET_ASSEMBLER_HEADER
#include “TestGenAsmMatcher.inc”

Thanks Nakamura, that was actually a nice hint.
I added the follow lines (copied from ARMAsmParser.cpp) to the end of my TestAsmParser.cpp file and it seems like the problem is solved during the compilation time, though I haven’t tested it yet to see if the binary works as well!

#define GET_REGISTER_MATCHER
#define GET_SUBTARGET_FEATURE_NAME
#define GET_MATCHER_IMPLEMENTATION
#include “TestGenAsmMatcher.inc”

Cheers,

ES