Change "Commit Locals" to just commit names

This commit is contained in:
caheckman 2020-03-18 11:38:59 -04:00
parent 7dcc3447cc
commit b17957b176
2 changed files with 6 additions and 18 deletions

View file

@ -202,7 +202,7 @@ public class HighFunctionDBUtil {
* @param highFunction is the decompiler's model of the function
* @param source is the desired SourceType for the commit
*/
public static void commitLocalsToDatabase(HighFunction highFunction, SourceType source) {
public static void commitLocalNamesToDatabase(HighFunction highFunction, SourceType source) {
Function function = highFunction.getFunction();
@ -216,19 +216,7 @@ public class HighFunctionDBUtil {
}
String name = sym.getName();
try {
Variable var =
clearConflictingLocalVariables(function, sym.getStorage(), sym.getPCAddress());
if (var == null) {
var = createLocalVariable(function, sym.getDataType(), sym.getStorage(),
sym.getPCAddress(), source);
if (name != null) {
var.setName(name, source);
}
}
else {
var.setDataType(sym.getDataType(), sym.getStorage(), false, source);
var.setName(name, source);
}
HighFunctionDBUtil.updateDBVariable(sym, null, null, source);
}
catch (UsrException e) {
Msg.error(HighFunctionDBUtil.class, "Local variable commit failed for " +