File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,10 @@ class Action {
7676 StaticLibJobClass,
7777 BinaryAnalyzeJobClass,
7878 BinaryTranslatorJobClass,
79+ BinaryModifyJobClass,
7980
8081 JobClassFirst = PreprocessJobClass,
81- JobClassLast = BinaryTranslatorJobClass
82+ JobClassLast = BinaryModifyJobClass
8283 };
8384
8485 // The offloading kind determines if this action is binded to a particular
@@ -687,6 +688,17 @@ class BinaryTranslatorJobAction : public JobAction {
687688 }
688689};
689690
691+ class BinaryModifyJobAction : public JobAction {
692+ void anchor () override ;
693+
694+ public:
695+ BinaryModifyJobAction (Action *Input, types::ID Type);
696+
697+ static bool classof (const Action *A) {
698+ return A->getKind () == BinaryModifyJobClass;
699+ }
700+ };
701+
690702} // namespace driver
691703} // namespace clang
692704
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ const char *Action::getClassName(ActionClass AC) {
5252 return " binary-analyzer" ;
5353 case BinaryTranslatorJobClass:
5454 return " binary-translator" ;
55+ case BinaryModifyJobClass:
56+ return " binary-modifier" ;
5557 }
5658
5759 llvm_unreachable (" invalid class" );
@@ -467,3 +469,8 @@ void BinaryTranslatorJobAction::anchor() {}
467469BinaryTranslatorJobAction::BinaryTranslatorJobAction (Action *Input,
468470 types::ID Type)
469471 : JobAction(BinaryTranslatorJobClass, Input, Type) {}
472+
473+ void BinaryModifyJobAction::anchor () {}
474+
475+ BinaryModifyJobAction::BinaryModifyJobAction (Action *Input, types::ID Type)
476+ : JobAction(BinaryModifyJobClass, Input, Type) {}
Original file line number Diff line number Diff line change @@ -652,6 +652,7 @@ Tool *ToolChain::getTool(Action::ActionClass AC) const {
652652 case Action::VerifyDebugInfoJobClass:
653653 case Action::BinaryAnalyzeJobClass:
654654 case Action::BinaryTranslatorJobClass:
655+ case Action::BinaryModifyJobClass:
655656 llvm_unreachable (" Invalid tool kind." );
656657
657658 case Action::CompileJobClass:
You can’t perform that action at this time.
0 commit comments