[cfe-commits] r66882 - /cfe/trunk/include/clang/Driver/Action.h
Daniel Dunbar
daniel at zuster.org
Fri Mar 13 04:30:19 PDT 2009
Author: ddunbar
Date: Fri Mar 13 06:30:17 2009
New Revision: 66882
URL: http://llvm.org/viewvc/llvm-project?rev=66882&view=rev
Log:
Driver: Add remaining Action classes we need.
Modified:
cfe/trunk/include/clang/Driver/Action.h
Modified: cfe/trunk/include/clang/Driver/Action.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Action.h?rev=66882&r1=66881&r2=66882&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Action.h (original)
+++ cfe/trunk/include/clang/Driver/Action.h Fri Mar 13 06:30:17 2009
@@ -17,6 +17,7 @@
namespace clang {
namespace driver {
+ class Arg;
/// Action - Represent an abstract compilation step to perform.
///
@@ -34,6 +35,9 @@
ActionList Inputs;
protected:
+ Action(types::ID _Type) : Type(_Type) {}
+ Action(Action *Input, types::ID _Type) : Type(_Type),
+ Inputs(&Input, &Input + 1) {}
Action(const ActionList &_Inputs, types::ID _Type) : Type(_Type),
Inputs(_Inputs) {}
public:
@@ -43,6 +47,10 @@
};
class InputAction : public Action {
+ const Arg &Input;
+public:
+ InputAction(const Arg &_Input, types::ID _Type) : Action(_Type),
+ Input(_Input) {}
};
class BindArchAction : public Action {
@@ -50,15 +58,55 @@
public:
BindArchAction(Action *Input, const char *_ArchName)
- : Action(ActionList(&Input, &Input + 1), Input->getType()),
- ArchName(_ArchName) {
+ : Action(Input, Input->getType()), ArchName(_ArchName) {
}
};
class JobAction : public Action {
protected:
- JobAction(ActionList &Inputs, types::ID Type)
- : Action(Inputs, Type) {}
+ JobAction(Action *Input, types::ID Type) : Action(Input, Type) {}
+ JobAction(const ActionList &Inputs, types::ID Type) : Action(Inputs, Type) {}
+};
+
+class PreprocessJobAction : public JobAction {
+public:
+ PreprocessJobAction(Action *Input, types::ID OutputType)
+ : JobAction(Input, OutputType) {
+ }
+};
+
+class PrecompileJobAction : public JobAction {
+public:
+ PrecompileJobAction(Action *Input, types::ID OutputType)
+ : JobAction(Input, OutputType) {
+ }
+};
+
+class AnalyzeJobAction : public JobAction {
+public:
+ AnalyzeJobAction(Action *Input, types::ID OutputType)
+ : JobAction(Input, OutputType) {
+ }
+};
+
+class CompileJobAction : public JobAction {
+public:
+ CompileJobAction(Action *Input, types::ID OutputType)
+ : JobAction(Input, OutputType) {
+ }
+};
+
+class AssembleJobAction : public JobAction {
+public:
+ AssembleJobAction(Action *Input, types::ID OutputType)
+ : JobAction(Input, OutputType) {
+ }
+};
+
+class LinkJobAction : public JobAction {
+public:
+ LinkJobAction(ActionList &Inputs, types::ID Type)
+ : JobAction(Inputs, Type) {}
};
class LipoJobAction : public JobAction {
More information about the cfe-commits
mailing list