[llvm-commits] [llvm] r81051 - /llvm/trunk/include/llvm/Target/TargetRegistry.h
Benjamin Kramer
benny.kra at googlemail.com
Fri Sep 4 15:44:04 PDT 2009
Author: d0k
Date: Fri Sep 4 17:44:03 2009
New Revision: 81051
URL: http://llvm.org/viewvc/llvm-project?rev=81051&view=rev
Log:
Remove an unneeded call to c_str().
Modified:
llvm/trunk/include/llvm/Target/TargetRegistry.h
Modified: llvm/trunk/include/llvm/Target/TargetRegistry.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetRegistry.h?rev=81051&r1=81050&r2=81051&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetRegistry.h (original)
+++ llvm/trunk/include/llvm/Target/TargetRegistry.h Fri Sep 4 17:44:03 2009
@@ -373,7 +373,7 @@
}
static unsigned getTripleMatchQuality(const std::string &TT) {
- if (Triple(TT.c_str()).getArch() == TargetArchType)
+ if (Triple(TT).getArch() == TargetArchType)
return 20;
return 0;
}
More information about the llvm-commits
mailing list