summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccld
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-10 20:59:38 +0000
committerChris Lattner <sabre@nondot.org>2005-04-10 20:59:38 +0000
commit672fe7267b44b803750b7dd400b474ad096ccdf7 (patch)
tree4ac1c69b5c047fa720a7cbf4b9f14590f27d30fb /llvm/tools/gccld
parent751cc5f49fa3cb0954acba3942bcf3809e5dfa1d (diff)
downloadbcm5719-llvm-672fe7267b44b803750b7dd400b474ad096ccdf7.tar.gz
bcm5719-llvm-672fe7267b44b803750b7dd400b474ad096ccdf7.zip
The first argument to ExecuteAndWait should be the program name, but pointed
out by Markus F.X.J. Oberhumer. llvm-svn: 21211
Diffstat (limited to 'llvm/tools/gccld')
-rw-r--r--llvm/tools/gccld/GenerateCode.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/gccld/GenerateCode.cpp b/llvm/tools/gccld/GenerateCode.cpp
index a75d6f1cd80..fa054e79b70 100644
--- a/llvm/tools/gccld/GenerateCode.cpp
+++ b/llvm/tools/gccld/GenerateCode.cpp
@@ -300,6 +300,7 @@ int llvm::GenerateAssembly(const std::string &OutputFilename,
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 @@ int llvm::GenerateAssembly(const std::string &OutputFilename,
/// 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 @@ int llvm::GenerateNative(const std::string &OutputFilename,
// 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");
OpenPOWER on IntegriCloud