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 | a34f97ab22d55b38423d25663cc26408ac34a721 (patch) | |
tree | 0579d1e6e25177b71043e6d569185240e9281d1a /lib/CompilerDriver | |
parent | c6e0dbf1ddb767e6587bbf340b8dc66a20b7cfea (diff) | |
download | external_llvm-a34f97ab22d55b38423d25663cc26408ac34a721.zip external_llvm-a34f97ab22d55b38423d25663cc26408ac34a721.tar.gz external_llvm-a34f97ab22d55b38423d25663cc26408ac34a721.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; +} |