summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-12 18:24:49 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-12 18:24:49 +0000
commit446f6843323cdb45f7f3099c8d7c9c98e4196cc1 (patch)
tree0b3d01065bed506a9f377bb76ad1eb14996d7717 /clang/lib
parent208f0269e72ed0f70d3f09498d6123c62c68dbcf (diff)
downloadbcm5719-llvm-446f6843323cdb45f7f3099c8d7c9c98e4196cc1.tar.gz
bcm5719-llvm-446f6843323cdb45f7f3099c8d7c9c98e4196cc1.zip
Driver: Introduce ActionList typedef, tweak some constness.
llvm-svn: 66809
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Driver/Driver.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 61cc89545cc..2b763c6ae57 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -132,7 +132,7 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) {
// Construct the list of abstract actions to perform for this
// compilation.
- llvm::SmallVector<Action*, 2> Actions;
+ ActionList Actions;
if (Host->useDriverDriver())
BuildUniversalActions(*Args, Actions);
else
@@ -149,7 +149,7 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) {
return new Compilation();
}
-void Driver::PrintOptions(const ArgList &Args) {
+void Driver::PrintOptions(const ArgList &Args) const {
unsigned i = 0;
for (ArgList::const_iterator it = Args.begin(), ie = Args.end();
it != ie; ++it, ++i) {
@@ -166,18 +166,16 @@ void Driver::PrintOptions(const ArgList &Args) {
}
}
-void Driver::PrintActions(const llvm::SmallVector<Action*, 2> &Actions) {
+void Driver::PrintActions(const ActionList &Actions) const {
llvm::errs() << "FIXME: Print actions.";
}
-void Driver::BuildUniversalActions(const ArgList &Args,
- llvm::SmallVector<Action*, 2> &Actions) {
+void Driver::BuildUniversalActions(ArgList &Args, ActionList &Actions) {
// FIXME: Implement
BuildActions(Args, Actions);
}
-void Driver::BuildActions(const ArgList &Args,
- llvm::SmallVector<Action*, 2> &Actions) {
+void Driver::BuildActions(ArgList &Args, ActionList &Actions) {
types::ID InputType = types::TY_INVALID;
Arg *InputTypeArg = 0;
OpenPOWER on IntegriCloud