#include "llvm/Support/FileUtilities.h"
#include <fstream>
#include <sstream>
+#include <iostream>
using namespace llvm;
ToolExecutionError::~ToolExecutionError() throw() { }
GCCArgs.push_back("-O2"); // Optimize the program a bit...
#if defined (HAVE_LINK_R)
GCCArgs.push_back("-Wl,-R."); // Search this dir for .so files
+#endif
+#ifdef __sparc__
+ GCCArgs.push_back("-mcpu=v9");
#endif
GCCArgs.push_back(0); // NULL terminator
#if defined(__ia64__) || defined(__alpha__)
"-fPIC", // IA64 requires shared objs to contain PIC
+#endif
+#ifdef __sparc__
+ "-mcpu=v9",
#endif
"-o", OutputFile.c_str(), // Output to the right filename...
"-O2", // Optimize the program a bit...