[llvm-commits] [llvm-gcc-4.2] r77951 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp llvm-linker-hack.cpp

Daniel Dunbar daniel at zuster.org
Sun Aug 2 21:21:24 PDT 2009


Author: ddunbar
Date: Sun Aug  2 23:21:23 2009
New Revision: 77951

URL: http://llvm.org/viewvc/llvm-project?rev=77951&view=rev
Log:
Update for LLVM API change.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
    llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=77951&r1=77950&r2=77951&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Sun Aug  2 23:21:23 2009
@@ -453,7 +453,7 @@
   std::string Err;
   std::string Triple = TheModule->getTargetTriple();
   const Target *TME =
-    TargetRegistry::lookupTarget(Triple, false, false, Err);
+    TargetRegistry::lookupTarget(Triple, Err);
   if (!TME) {
     cerr << "Did not get a target machine! Triplet is " << TargetTriple << '\n';
     exit(1);

Modified: llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp?rev=77951&r1=77950&r2=77951&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-linker-hack.cpp Sun Aug  2 23:21:23 2009
@@ -100,7 +100,7 @@
   llvm::PrettyStackTraceProgram::PrettyStackTraceProgram(0, 0);
   llvm::DIFactory::DIFactory(*MP->getModule());
   std::string Err;
-  llvm::TargetRegistry::lookupTarget("", false, false, Err);
+  llvm::TargetRegistry::lookupTarget("", Err);
 }
 
 /* LLVM LOCAL end (ENTIRE FILE!)  */





More information about the llvm-commits mailing list