[llvm-commits] [dragonegg] r94882 - /dragonegg/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Sat Jan 30 05:31:35 PST 2010
Author: baldrick
Date: Sat Jan 30 07:31:34 2010
New Revision: 94882
URL: http://llvm.org/viewvc/llvm-project?rev=94882&view=rev
Log:
Port llvm-gcc commit 93176 (d0k):
Use the SmallVector SplitString overload.
Modified:
dragonegg/trunk/llvm-backend.cpp
Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=94882&r1=94881&r2=94882&view=diff
==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Sat Jan 30 07:31:34 2010
@@ -389,9 +389,12 @@
//TODO std::vector<std::string> LLVM_Optns; // Avoid deallocation before opts parsed!
//TODO if (llvm_optns) {
-//TODO SplitString(llvm_optns, LLVM_Optns);
-//TODO for(unsigned i = 0, e = LLVM_Optns.size(); i != e; ++i)
-//TODO Args.push_back(LLVM_Optns[i].c_str());
+//TODO llvm::SmallVector<llvm::StringRef, 16> Buf;
+//TODO SplitString(llvm_optns, Buf);
+//TODO for(unsigned i = 0, e = Buf.size(); i != e; ++i) {
+//TODO LLVM_Optns.push_back(Buf[i]);
+//TODO Args.push_back(LLVM_Optns.back().c_str());
+//TODO }
//TODO }
Args.push_back(0); // Null terminator.
More information about the llvm-commits
mailing list