diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-06-07 23:26:47 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-06-07 23:26:47 +0000 |
commit | faddc3e53a95c68f2c3a966e0f1e6eba110dafd6 (patch) | |
tree | a63ec2f16986e5109568e36dc85c28970e6c8ad7 /include/clang/Frontend/FrontendAction.h | |
parent | 685ac6665a3f91f9a66a9f44b6bf755a0cd929ea (diff) |
Frontend: Add FrontendAction support for handling LLVM IR inputs.
- These inputs follow an abbreviated execution path, but are still worth handling by FrontendAction so they reuse all the other clang -cc1 features.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/FrontendAction.h')
-rw-r--r-- | include/clang/Frontend/FrontendAction.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/Frontend/FrontendAction.h b/include/clang/Frontend/FrontendAction.h index 3992c92874..5a627ef960 100644 --- a/include/clang/Frontend/FrontendAction.h +++ b/include/clang/Frontend/FrontendAction.h @@ -32,7 +32,8 @@ enum InputKind { IK_PreprocessedObjC, IK_PreprocessedObjCXX, IK_OpenCL, - IK_AST + IK_AST, + IK_LLVM_IR }; @@ -153,6 +154,9 @@ public: /// hasASTFileSupport - Does this action support use with AST files? virtual bool hasASTFileSupport() const { return !usesPreprocessorOnly(); } + /// hasIRSupport - Does this action support use with IR files? + virtual bool hasIRSupport() const { return false; } + /// hasCodeCompletionSupport - Does this action support use with code /// completion? virtual bool hasCodeCompletionSupport() const { return false; } |