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)
commit733c336327621d41617d3d49c7b86199a361a367
tree89a0773eb1877dae46bdb2198759ba2646c1580e
parent800ec3da7af7b73cd3c61d5da53d9d7c8343ad83
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172440 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/MCAsmParser.h
lib/MC/MCParser/AsmParser.cpp