[llvm-commits] [gcc-plugin] r79552 - /gcc-plugin/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Thu Aug 20 11:20:04 PDT 2009
Author: baldrick
Date: Thu Aug 20 13:20:04 2009
New Revision: 79552
URL: http://llvm.org/viewvc/llvm-project?rev=79552&view=rev
Log:
Bring up to llvm-gcc revision 79551.
Modified:
gcc-plugin/trunk/llvm-backend.cpp
Modified: gcc-plugin/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-backend.cpp?rev=79552&r1=79551&r2=79552&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-backend.cpp (original)
+++ gcc-plugin/trunk/llvm-backend.cpp Thu Aug 20 13:20:04 2009
@@ -491,9 +491,8 @@
// Create the TargetMachine we will be generating code with.
// FIXME: Figure out how to select the target and pass down subtarget info.
std::string Err;
- std::string Triple = TheModule->getTargetTriple();
const Target *TME =
- TargetRegistry::lookupTarget(Triple, Err);
+ TargetRegistry::lookupTarget(TargetTriple, Err);
if (!TME)
llvm_report_error(Err);
@@ -506,7 +505,7 @@
//TODO LLVM_SET_SUBTARGET_FEATURES(Features);
//TODO FeatureStr = Features.getString();
//TODO#endif
- TheTarget = TME->createTargetMachine(Triple, FeatureStr);
+ TheTarget = TME->createTargetMachine(TargetTriple, FeatureStr);
assert(TheTarget->getTargetData()->isBigEndian() == BYTES_BIG_ENDIAN);
TheFolder = new TargetFolder(TheTarget->getTargetData(), getGlobalContext());
More information about the llvm-commits
mailing list