mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
Merge remote-tracking branch 'origin/GP-790_ghizard_Change_Demangler_constructor_return_type' into patch
This commit is contained in:
commit
006b3d0ca1
@ -461,8 +461,12 @@ public class DemangledFunction extends DemangledObject {
|
||||
// If returnType is null check for constructor or destructor names
|
||||
if (THIS_CALL.equals(function.getCallingConventionName())) {
|
||||
String n = getName();
|
||||
if (n.equals("~" + namespace.getName()) || n.equals(namespace.getName())) {
|
||||
// constructor && destructor
|
||||
if (n.equals(namespace.getName())) {
|
||||
// constructor
|
||||
return DataType.DEFAULT;
|
||||
}
|
||||
if (n.equals("~" + namespace.getName())) {
|
||||
// destructor
|
||||
return VoidDataType.dataType;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user