summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver/Tool.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-02-23 09:04:44 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-02-23 09:04:44 +0000
commita44e838bcb156f837f3f2b18316045d98eb83bd4 (patch)
tree3f2b01f750127d7cc51e93f0040c187ec05e7738 /llvm/lib/CompilerDriver/Tool.cpp
parent04ae7a6e01bf963cbfca3b336ee82463581f02ae (diff)
downloadbcm5719-llvm-a44e838bcb156f837f3f2b18316045d98eb83bd4.tar.gz
bcm5719-llvm-a44e838bcb156f837f3f2b18316045d98eb83bd4.zip
Correct option forwarding: initial implementation.
Does not work, but the infrastructure changes are in place. llvm-svn: 96920
Diffstat (limited to 'llvm/lib/CompilerDriver/Tool.cpp')
-rw-r--r--llvm/lib/CompilerDriver/Tool.cpp9
1 files changed, 9 insertions, 0 deletions
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;
+}
OpenPOWER on IntegriCloud