[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Apr 10 13:58:35 PDT 2005
Changes in directory llvm/tools/gccld:
GenerateCode.cpp updated: 1.44 -> 1.45
---
Log message:
The first argument to ExecuteAndWait should be the program name, but pointed
out by Markus F.X.J. Oberhumer.
---
Diffs of the changes: (+4 -1)
GenerateCode.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.44 llvm/tools/gccld/GenerateCode.cpp:1.45
--- llvm/tools/gccld/GenerateCode.cpp:1.44 Mon Feb 28 02:45:35 2005
+++ llvm/tools/gccld/GenerateCode.cpp Sun Apr 10 15:58:21 2005
@@ -300,6 +300,7 @@
const sys::Path &llc) {
// Run LLC to convert the bytecode file into assembly code.
std::vector<const char*> args;
+ args.push_back(llc.c_str());
args.push_back("-f");
args.push_back("-o");
args.push_back(OutputFilename.c_str());
@@ -313,9 +314,10 @@
/// specified bytecode file.
int llvm::GenerateCFile(const std::string &OutputFile,
const std::string &InputFile,
- const sys::Path &llc ) {
+ const sys::Path &llc) {
// Run LLC to convert the bytecode file into C.
std::vector<const char*> args;
+ args.push_back(llc.c_str());
args.push_back("-march=c");
args.push_back("-f");
args.push_back("-o");
@@ -372,6 +374,7 @@
// and linker because we don't know where to put the _start symbol.
// GCC mysteriously knows how to do it.
std::vector<const char*> args;
+ args.push_back(gcc.c_str());
args.push_back("-fno-strict-aliasing");
args.push_back("-O3");
args.push_back("-o");
More information about the llvm-commits
mailing list