[cfe-commits] r135170 - /cfe/trunk/lib/Basic/Targets.cpp
Chris Lattner
sabre at nondot.org
Thu Jul 14 11:45:42 PDT 2011
Author: lattner
Date: Thu Jul 14 13:45:41 2011
New Revision: 135170
URL: http://llvm.org/viewvc/llvm-project?rev=135170&view=rev
Log:
simplify
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=135170&r1=135169&r2=135170&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Thu Jul 14 13:45:41 2011
@@ -3056,7 +3056,7 @@
for (llvm::StringMap<bool>::const_iterator it = Features.begin(),
ie = Features.end(); it != ie; ++it)
Opts.Features.push_back(std::string(it->second ? "+" : "-") +
- llvm::StringRef(it->first()).str());
+ it->first().str());
Target->HandleTargetFeatures(Opts.Features);
return Target.take();
More information about the cfe-commits
mailing list