[llvm-commits] CVS: llvm/tools/llvm-ld/llvm-ld.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 13 15:10:59 PST 2005



Changes in directory llvm/tools/llvm-ld:

llvm-ld.cpp updated: 1.21 -> 1.22
---
Log message:

Conform to the documented interface by null terminating argument lists!



---
Diffs of the changes:  (+3 -0)

 llvm-ld.cpp |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/tools/llvm-ld/llvm-ld.cpp
diff -u llvm/tools/llvm-ld/llvm-ld.cpp:1.21 llvm/tools/llvm-ld/llvm-ld.cpp:1.22
--- llvm/tools/llvm-ld/llvm-ld.cpp:1.21	Sat Jan 22 11:36:17 2005
+++ llvm/tools/llvm-ld/llvm-ld.cpp	Sun Feb 13 17:10:45 2005
@@ -225,6 +225,7 @@
   args.push_back( "-o");
   args.push_back( OutputFilename.c_str() );
   args.push_back( InputFilename.c_str() );
+  args.push_back(0);
 
   return sys::Program::ExecuteAndWait(llc,&args[0]);
 }
@@ -241,6 +242,7 @@
   args.push_back( "-o");
   args.push_back( OutputFile.c_str() );
   args.push_back( InputFile.c_str() );
+  args.push_back(0);
   return sys::Program::ExecuteAndWait(llc, &args[0]);
 }
 
@@ -300,6 +302,7 @@
       args.push_back("-l");
       args.push_back(Libraries[index].c_str());
     }
+  args.push_back(0);
 
   // Run the compiler to assembly and link together the program.
   return sys::Program::ExecuteAndWait(gcc, &args[0], (const char**)clean_env);






More information about the llvm-commits mailing list