aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/IdentifierTable.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-03 18:24:14 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-03 18:24:14 +0000
commit94ad28b31433058445a27db722f60402ee820bea (patch)
tree9c60fe2e61231fcf462546f6c922aef0f9f5ff1f /lib/Basic/IdentifierTable.cpp
parent5948ae1021122164b22f74353bb7fe325a64f616 (diff)
Under -fmodules, accept #public <macroname> and #private <macroname>
to make a macro public (the default for headers) or private, respectively. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147455 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/IdentifierTable.cpp')
-rw-r--r--lib/Basic/IdentifierTable.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Basic/IdentifierTable.cpp b/lib/Basic/IdentifierTable.cpp
index 690a1f5a84..4368ff712c 100644
--- a/lib/Basic/IdentifierTable.cpp
+++ b/lib/Basic/IdentifierTable.cpp
@@ -216,18 +216,17 @@ tok::PPKeywordKind IdentifierInfo::getPPKeywordID() const {
CASE( 6, 'i', 'n', ifndef);
CASE( 6, 'i', 'p', import);
CASE( 6, 'p', 'a', pragma);
-
+ CASE( 6, 'p', 'b', public);
+
CASE( 7, 'd', 'f', defined);
CASE( 7, 'i', 'c', include);
+ CASE( 7, 'p', 'i', private);
CASE( 7, 'w', 'r', warning);
CASE( 8, 'u', 'a', unassert);
CASE(12, 'i', 'c', include_next);
CASE(16, '_', 'i', __include_macros);
- CASE(16, '_', 'e', __export_macro__);
-
- CASE(17, '_', 'p', __private_macro__);
#undef CASE
#undef HASH
}