diff gen/llvmhelpers.cpp @ 583:12bda38ea366

Fixed choosing default target machine without needing to link in targets.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 07 Sep 2008 17:44:25 -0700
parents 3197ffdc2811
children fbb1a366cfbc
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Sun Sep 07 16:16:10 2008 +0200
+++ b/gen/llvmhelpers.cpp	Sun Sep 07 17:44:25 2008 -0700
@@ -1483,23 +1483,6 @@
 
 //////////////////////////////////////////////////////////////////////////////////////////
 
-void findDefaultTarget()
-{
-    std::string err_str;
-    const llvm::TargetMachineRegistry::entry* e = llvm::TargetMachineRegistry::getClosestTargetForJIT(err_str);
-    if (e == 0)
-    {
-        error("Failed to find a default target machine: %s", err_str.c_str());
-        fatal();
-    }
-    else
-    {
-        global.params.llvmArch = const_cast<char*>(e->Name);
-    }
-}
-
-//////////////////////////////////////////////////////////////////////////////////////////
-
 LLValue* DtoBoolean(Loc& loc, DValue* dval)
 {
     Type* dtype = dval->getType()->toBasetype();