[llvm-branch-commits] [llvm-branch] r113617 - /llvm/branches/Apple/Morbo/lib/VMCore/AutoUpgrade.cpp
Bill Wendling
isanbard at gmail.com
Fri Sep 10 13:42:42 PDT 2010
Author: void
Date: Fri Sep 10 15:42:42 2010
New Revision: 113617
URL: http://llvm.org/viewvc/llvm-project?rev=113617&view=rev
Log:
Merge in r113615.
Modified:
llvm/branches/Apple/Morbo/lib/VMCore/AutoUpgrade.cpp
Modified: llvm/branches/Apple/Morbo/lib/VMCore/AutoUpgrade.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Morbo/lib/VMCore/AutoUpgrade.cpp?rev=113617&r1=113616&r2=113617&view=diff
==============================================================================
--- llvm/branches/Apple/Morbo/lib/VMCore/AutoUpgrade.cpp (original)
+++ llvm/branches/Apple/Morbo/lib/VMCore/AutoUpgrade.cpp Fri Sep 10 15:42:42 2010
@@ -309,12 +309,7 @@
}
bool llvm::UpgradeGlobalVariable(GlobalVariable *GV) {
- const std::string &Name = GV->getName();
-
- // Early exit with simple tests.
- if (Name.length() != 24 || Name[0] != '.' || Name[1] != 'l' ||
- Name[3] != 'l' || Name[4] != 'v' || Name[5] != 'm' || Name[6] != '.')
- return false;
+ StringRef Name(GV->getName());
// We are only upgrading one symbol here.
if (Name == ".llvm.eh.catch.all.value") {
More information about the llvm-branch-commits
mailing list