diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-23 09:04:44 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-02-23 09:04:44 +0000 |
| commit | 8ee0c14f87ac2868fc656a1817fa5e9fb8e5fadd (patch) | |
| tree | 0579d1e6e25177b71043e6d569185240e9281d1a /lib/CompilerDriver | |
| parent | 533d91fc1d9b2ec32fe5dec2bc16b4f0c77c7ce4 (diff) | |
| download | external_llvm-8ee0c14f87ac2868fc656a1817fa5e9fb8e5fadd.zip external_llvm-8ee0c14f87ac2868fc656a1817fa5e9fb8e5fadd.tar.gz external_llvm-8ee0c14f87ac2868fc656a1817fa5e9fb8e5fadd.tar.bz2 | |
Correct option forwarding: initial implementation.
Does not work, but the infrastructure changes are in place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CompilerDriver')
| -rw-r--r-- | lib/CompilerDriver/Tool.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/CompilerDriver/Tool.cpp b/lib/CompilerDriver/Tool.cpp index 9f4ab49..7be2414 100644 --- a/lib/CompilerDriver/Tool.cpp +++ b/lib/CompilerDriver/Tool.cpp @@ -71,3 +71,12 @@ sys::Path Tool::OutFilename(const sys::Path& In, } return Out; } + +StrVector Tool::SortArgs(ArgsVector& Args) const { + StrVector Out; + + for (ArgsVector::iterator B = Args.begin(), E = Args.end(); B != E; ++B) + Out.push_back(B->second); + + return Out; +} |
