[vmkit-commits] [vmkit] r86981 - /vmkit/trunk/lib/Mvm/Runtime/MethodInfo.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Thu Nov 12 01:56:13 PST 2009
Author: geoffray
Date: Thu Nov 12 03:56:12 2009
New Revision: 86981
URL: http://llvm.org/viewvc/llvm-project?rev=86981&view=rev
Log:
Always put the result of dladdr to avoid calling it again and again.
Modified:
vmkit/trunk/lib/Mvm/Runtime/MethodInfo.cpp
Modified: vmkit/trunk/lib/Mvm/Runtime/MethodInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/Runtime/MethodInfo.cpp?rev=86981&r1=86980&r2=86981&view=diff
==============================================================================
--- vmkit/trunk/lib/Mvm/Runtime/MethodInfo.cpp (original)
+++ vmkit/trunk/lib/Mvm/Runtime/MethodInfo.cpp Thu Nov 12 03:56:12 2009
@@ -67,15 +67,14 @@
MI = &DefaultMethodInfo::DM;
} else {
MI = I->second;
- // Add it to the map, so that we don't need to call dladdr again
- // on something that belongs to our code.
- Functions.insert(std::make_pair(ip, MI));
}
} else {
// The method is jitted, and no-one has intercepted its compilation.
// Just return the Default MethodInfo object.
MI = &DefaultMethodInfo::DM;
}
+ // Add it to the map, so that we don't need to call dladdr again.
+ Functions.insert(std::make_pair(ip, MI));
} else {
MI = I->second;
}
More information about the vmkit-commits
mailing list