Richard Smith
2a553089c3
[modules] Properly attribute macros to modules if they're in a file textually included into a file in the module.
...
llvm-svn: 235661
2015-04-23 22:58:06 +00:00
Douglas Gregor
c83de30add
Introduce builtin macros to determine whether we're building a
...
specific module (__building_module(modulename)) and to get the name of
the current module as an identifier (__MODULE__).
Used to help headers behave differently when they're being included as
part of building a module. Oh, the irony.
llvm-svn: 164605
2012-09-25 15:44:52 +00:00
Douglas Gregor
663b48f13b
Re-uglify #public and #private to #__public_macro and #__private_macro.
...
llvm-svn: 147469
2012-01-03 19:48:16 +00:00
Douglas Gregor
0bf886d41a
Under -fmodules, accept #public <macroname> and #private <macroname>
...
to make a macro public (the default for headers) or private,
respectively.
llvm-svn: 147455
2012-01-03 18:24:14 +00:00
Douglas Gregor
84febf4a4d
Migrate a few more modules tests over to -emit-module-from-map.
...
llvm-svn: 144779
2011-11-16 05:16:30 +00:00