diff options
Diffstat (limited to 'tools/llc/llc.cpp')
-rw-r--r-- | tools/llc/llc.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 4d1bb77..71667c3 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -35,7 +35,14 @@ Arch("march", cl::desc("Architecture to generate assembly for:"), cl::Prefix, cl::values(clEnumVal(x86, " IA-32 (Pentium and above)"), clEnumValN(Sparc, "sparc", " SPARC V9"), 0), - cl::init(noarch)); +#if defined(i386) || defined(__i386__) || defined(__x86__) + cl::init(x86) +#elif defined(sparc) || defined(__sparc__) || defined(__sparcv9) + cl::init(Sparc) +#else + cl::init(noarch) +#endif + ); // GetFileNameRoot - Helper function to get the basename of a filename... static inline std::string |