From a44e838bcb156f837f3f2b18316045d98eb83bd4 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. llvm-svn: 96920 --- llvm/lib/CompilerDriver/Tool.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'llvm/lib/CompilerDriver/Tool.cpp') diff --git a/llvm/lib/CompilerDriver/Tool.cpp b/llvm/lib/CompilerDriver/Tool.cpp index 9f4ab495662..7be24147ce7 100644 --- a/llvm/lib/CompilerDriver/Tool.cpp +++ b/llvm/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.2.3