mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Merge remote-tracking branch 'origin/GP-790_ghizard_Change_Demangler_constructor_return_type' into patch
This commit is contained in:
commit
006b3d0ca1
1 changed files with 6 additions and 2 deletions
|
@ -461,8 +461,12 @@ public class DemangledFunction extends DemangledObject {
|
||||||
// If returnType is null check for constructor or destructor names
|
// If returnType is null check for constructor or destructor names
|
||||||
if (THIS_CALL.equals(function.getCallingConventionName())) {
|
if (THIS_CALL.equals(function.getCallingConventionName())) {
|
||||||
String n = getName();
|
String n = getName();
|
||||||
if (n.equals("~" + namespace.getName()) || n.equals(namespace.getName())) {
|
if (n.equals(namespace.getName())) {
|
||||||
// constructor && destructor
|
// constructor
|
||||||
|
return DataType.DEFAULT;
|
||||||
|
}
|
||||||
|
if (n.equals("~" + namespace.getName())) {
|
||||||
|
// destructor
|
||||||
return VoidDataType.dataType;
|
return VoidDataType.dataType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue