Implement order-preserving option forwarding.
authorMikhail Glushenkov <foldr@codedgers.com>
Tue, 23 Feb 2010 09:04:57 +0000 (09:04 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Tue, 23 Feb 2010 09:04:57 +0000 (09:04 +0000)
commit1afba8e474c54939bc6ab92ed57776fd059529a0
treec2871a835c4b83f2c5c844a8301be19c682f4468
parent7cebe55bade5c784fb9e2c574cc797fcd6cf1082
Implement order-preserving option forwarding.

Needed to correctly handle things like 'llvmc -framework Foo foo.o -framework
Bar bar.o' - before this commit all '-framework' options would've been grouped
together in the beginning.

Due to our dependence on CommandLine this turned out to be a giant hack; we will
migrate away from CommandLine eventually.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96922 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CompilerDriver/Tool.cpp
utils/TableGen/LLVMCConfigurationEmitter.cpp