summaryrefslogtreecommitdiff
path: root/lib/Driver/Job.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-07-02 22:52:08 +0000
committerJustin Bogner <mail@justinbogner.com>2015-07-02 22:52:08 +0000
commiteb4602db1a5063263d3fae4b271ab0243446cc38 (patch)
tree52e67e61069a81894ad80d5ff48fd292b0a08423 /lib/Driver/Job.cpp
parentd98acffaf073e308e6a2b14a31632834a69af006 (diff)
downloadclang-eb4602db1a5063263d3fae4b271ab0243446cc38.tar.gz
Driver: Remove the Job class. NFC
We had a strange relationship here where we made a list of Jobs inherit from a single Job, but there weren't actually any places where this arbitrary nesting was used or needed. Simplify all of this by removing Job entirely and updating all of the users to either work with a JobList or a single Command. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Job.cpp')
-rw-r--r--lib/Driver/Job.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Driver/Job.cpp b/lib/Driver/Job.cpp
index 4b5b839e52..ac18e1eb56 100644
--- a/lib/Driver/Job.cpp
+++ b/lib/Driver/Job.cpp
@@ -25,12 +25,10 @@ using llvm::raw_ostream;
using llvm::StringRef;
using llvm::ArrayRef;
-Job::~Job() {}
-
Command::Command(const Action &Source, const Tool &Creator,
const char *Executable, const ArgStringList &Arguments)
- : Job(CommandClass), Source(Source), Creator(Creator),
- Executable(Executable), Arguments(Arguments), ResponseFile(nullptr) {}
+ : Source(Source), Creator(Creator), Executable(Executable),
+ Arguments(Arguments), ResponseFile(nullptr) {}
static int skipArgs(const char *Flag, bool HaveCrashVFS) {
// These flags are all of the form -Flag <Arg> and are treated as two
@@ -293,8 +291,6 @@ int FallbackCommand::Execute(const StringRef **Redirects, std::string *ErrMsg,
return SecondaryStatus;
}
-JobList::JobList() : Job(JobListClass) {}
-
void JobList::Print(raw_ostream &OS, const char *Terminator, bool Quote,
CrashReportInfo *CrashInfo) const {
for (const auto &Job : *this)