diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-04 19:21:03 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-04 19:21:03 +0000 |
commit | fcdd8fe26de3eee44927600bf1853e21bd90dd84 (patch) | |
tree | a8219fdefd72e2998c0940cf0a73e17fb10ec839 /lib/Parse/ParsePragma.h | |
parent | 4095080aff204008eefb26b100906c6ca2bc4bb6 (diff) |
Add Parser support for #pragma pack
- Uses Action::ActOnPragmaPack
- Test case is XFAIL pending verifier fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParsePragma.h')
-rw-r--r-- | lib/Parse/ParsePragma.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/Parse/ParsePragma.h b/lib/Parse/ParsePragma.h new file mode 100644 index 0000000000..8a9ae5765b --- /dev/null +++ b/lib/Parse/ParsePragma.h @@ -0,0 +1,33 @@ +//===---- ParserPragmas.h - Language specific pragmas -----------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines #pragma handlers for language specific pragmas. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_CLANG_PARSE_PARSEPRAGMA_H +#define LLVM_CLANG_PARSE_PARSEPRAGMA_H + +#include "clang/Lex/Pragma.h" + +namespace clang { + class Action; + +class PragmaPackHandler : public PragmaHandler { + Action &Actions; +public: + PragmaPackHandler(const IdentifierInfo *N, Action &A) : PragmaHandler(N), + Actions(A) {} + + virtual void HandlePragma(Preprocessor &PP, Token &FirstToken); +}; + +} // end namespace clang + +#endif |