From ec52f92db3a0922d516b19177f36d7c54d461580 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 23 Feb 2012 23:47:16 +0000 Subject: Handle "#pragma GCC visibility" in a few more places. Switch over "#pragma pack" to use the same handling that gcc does. Fixes and . (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 --- clang/lib/Parse/ParseStmt.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'clang/lib/Parse/ParseStmt.cpp') 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. -- cgit v1.2.3