]> granicus.if.org Git - llvm/commit
Merging r325139:
authorHans Wennborg <hans@hanshq.net>
Fri, 16 Feb 2018 10:11:29 +0000 (10:11 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 16 Feb 2018 10:11:29 +0000 (10:11 +0000)
commit08f6e35d6fdf32da14ad058748728c560c7556ac
tree2fafed868fcb05309a2b68408df6111ad15da484
parenta1b3df34e9efd6b17978356eb26b2c8f7286db4d
Merging r325139:
------------------------------------------------------------------------
r325139 | rafael | 2018-02-14 17:34:27 +0100 (Wed, 14 Feb 2018) | 12 lines

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!
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@325330 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAsmMacro.h [new file with mode: 0644]
include/llvm/MC/MCContext.h
lib/MC/MCParser/AsmParser.cpp
test/MC/AsmParser/inline_macro_duplication.ll [new file with mode: 0644]