Store defined macros in MCContext.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 14 Feb 2018 16:34:27 +0000 (16:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 14 Feb 2018 16:34:27 +0000 (16:34 +0000)
commit22c38a074890361bd615e4aad66f0a95db684a39
tree64482372331030307498e7bf73f6a06efd2997c0
parent3f60b0b3f4e4eca2771bcba454c115b4cae7da11
Store defined macros in MCContext.

So that macros defined in inline assembly blocks are available to the
whole file.

This provides a consistent behavior with other assembly directives,
since equations for example are already preserved between inline
assembly blocks.

PR: 36110

Patch by Roger!

llvm-svn: 325139
llvm/include/llvm/MC/MCAsmMacro.h [new file with mode: 0644]
llvm/include/llvm/MC/MCContext.h
llvm/lib/MC/MCParser/AsmParser.cpp
llvm/test/MC/AsmParser/inline_macro_duplication.ll [new file with mode: 0644]