diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-02-23 23:47:16 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-02-23 23:47:16 +0000 |
commit | ec52f92db3a0922d516b19177f36d7c54d461580 (patch) | |
tree | 69fd20d66f22aff43eae12c1980c230081c5acc4 /clang/lib/Parse/ParseStmt.cpp | |
parent | 6f298a646448e8e2523526db29b14cb4e57208c6 (diff) | |
download | bcm5719-llvm-ec52f92db3a0922d516b19177f36d7c54d461580.tar.gz bcm5719-llvm-ec52f92db3a0922d516b19177f36d7c54d461580.zip |
Handle "#pragma GCC visibility" in a few more places. Switch over "#pragma pack" to use the same handling that gcc does. Fixes <rdar://problem/10871094> and <rdar://problem/10893316>.
(Hopefully, common usage of these pragmas isn't irregular enough to break our current handling. Doug has ideas for a more crazy approach if necessary.)
llvm-svn: 151307
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r-- | clang/lib/Parse/ParseStmt.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp index 3537768eed1..0ce73cbeb2b 100644 --- a/clang/lib/Parse/ParseStmt.cpp +++ b/clang/lib/Parse/ParseStmt.cpp @@ -280,6 +280,14 @@ Retry: case tok::kw___try: return ParseSEHTryBlock(attrs); + + case tok::annot_pragma_vis: + HandlePragmaVisibility(); + return StmtEmpty(); + + case tok::annot_pragma_pack: + HandlePragmaPack(); + return StmtEmpty(); } // If we reached this code, the statement must end in a semicolon. |