Encapsulate the MacroEnabled flag in AsmParser behind accessor methods.
authorEli Bendersky <eliben@google.com>
Mon, 14 Jan 2013 18:08:41 +0000 (18:08 +0000)
committerEli Bendersky <eliben@google.com>
Mon, 14 Jan 2013 18:08:41 +0000 (18:08 +0000)
commitc2f6f920b9f358c8b8a22633c5ce1526a7b86b89
tree3f32e3e0413136783f1e01c0a595b7e7199012c4
parent11dfe6fe3d0736d46c9cfc9de79bef60c671c097
Encapsulate the MacroEnabled flag in AsmParser behind accessor methods.

The methods are also exposed via the MCAsmParser interface, which allows more
than one client to control them. Previously, GenericAsmParser was playing with
a member var in AsmParser directly (by virtue of being its friend).

llvm-svn: 172440
llvm/include/llvm/MC/MCParser/MCAsmParser.h
llvm/lib/MC/MCParser/AsmParser.cpp