[cfe-commits] r77112 - /cfe/trunk/lib/Frontend/Backend.cpp
Daniel Dunbar
daniel at zuster.org
Sat Jul 25 19:21:05 PDT 2009
Author: ddunbar
Date: Sat Jul 25 21:21:04 2009
New Revision: 77112
URL: http://llvm.org/viewvc/llvm-project?rev=77112&view=rev
Log:
Update for API change.
Modified:
cfe/trunk/lib/Frontend/Backend.cpp
Modified: cfe/trunk/lib/Frontend/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Backend.cpp?rev=77112&r1=77111&r2=77112&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/Backend.cpp (original)
+++ cfe/trunk/lib/Frontend/Backend.cpp Sat Jul 25 21:21:04 2009
@@ -207,7 +207,7 @@
// Create the TargetMachine for generating code.
std::string Triple = TheModule->getTargetTriple();
const llvm::Target *TheTarget =
- TargetRegistry::getClosestStaticTargetForTriple(Triple, Error);
+ TargetRegistry::lookupTarget(Triple, false, false, Error);
if (!TheTarget) {
Error = std::string("Unable to get target machine: ") + Error;
return false;
More information about the cfe-commits
mailing list