Driver: Sprinkle some consts in, stub out BuildJobs method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66968 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index ee8a649..cbd03a3 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -171,10 +171,7 @@
return 0;
}
-
- assert(0 && "FIXME: Implement");
-
- return new Compilation();
+ return BuildJobs(*Args, Actions);
}
void Driver::PrintOptions(const ArgList &Args) const {
@@ -274,7 +271,7 @@
PrintActions1(Args, *it, Ids);
}
-void Driver::BuildUniversalActions(ArgList &Args, ActionList &Actions) {
+void Driver::BuildUniversalActions(ArgList &Args, ActionList &Actions) const {
// Collect the list of architectures. Duplicates are allowed, but
// should only be handled once (in the order seen).
llvm::StringSet<> ArchNames;
@@ -348,7 +345,7 @@
}
}
-void Driver::BuildActions(ArgList &Args, ActionList &Actions) {
+void Driver::BuildActions(ArgList &Args, ActionList &Actions) const {
// Start by constructing the list of inputs and their types.
// Track the current user specified (-x) input. We also explicitly
@@ -566,6 +563,12 @@
return 0;
}
+Compilation *Driver::BuildJobs(const ArgList &Args,
+ const ActionList &Actions) const {
+ assert(0 && "FIXME: Implement");
+ return 0;
+}
+
llvm::sys::Path Driver::GetFilePath(const char *Name) const {
// FIXME: Implement.
return llvm::sys::Path(Name);