Ignore:
Timestamp:
Nov 6, 2023, 4:33:44 PM (7 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
6b419ce
Parents:
0d41b2e
Message:

Updated the demangler to also demangle operator names. You can also pass a filename to demangle now. There is also a test, but I don't really know what good tests are for the demangler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Demangle.cc

    r0d41b2e rc649d2c  
    99// Author           : Rob Schluntz
    1010// Created On       : Thu Jul 19 12:52:41 2018
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jan 11 21:28:27 2021
    13 // Update Count     : 11
     11// Last Modified By : Andrew Beach
     12// Last Modified On : Mon Nov  6 15:59:00 2023
     13// Update Count     : 12
    1414//
    1515
     
    1818
    1919#include "CodeGen/GenType.h"
     20#include "CodeGen/OperatorTable.h"
    2021#include "Common/PassVisitor.h"
    2122#include "Common/utility.h"                                                             // isPrefix
     
    605606                                Type * type = nullptr;
    606607                                if (! view.parse(name, type)) return mangleName;
     608                                auto info = CodeGen::operatorLookupByOutput(name);
     609                                if (info) name = info->inputName;
    607610                                std::unique_ptr<Type> manager(type);
    608611                                return genDemangleType(type, name);
Note: See TracChangeset for help on using the changeset viewer.