diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-12 18:24:49 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-12 18:24:49 +0000 |
commit | d65bddcbe1385a4de212ecbbdc8919c54b3efeb0 (patch) | |
tree | be10b2d9377a13a9dd9474dc906c2f221ea741e1 /lib/Driver/Driver.cpp | |
parent | 9f5ef9426fee383cb42b72cee1d6dc949c8c0189 (diff) |
Driver: Introduce ActionList typedef, tweak some constness.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 61cc89545c..2b763c6ae5 100644 --- a/lib/Driver/Driver.cpp +++ b/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; |