From a34f97ab22d55b38423d25663cc26408ac34a721 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Tue, 23 Feb 2010 09:04:44 +0000 Subject: 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 --- lib/CompilerDriver/Tool.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/CompilerDriver') 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; +} -- cgit v1.1