Skip to content

Commit

Permalink
Remove the old re-mangler.
Browse files Browse the repository at this point in the history
NFC except the swift-demangle does not check for correct old-style re-mangling anymore.
  • Loading branch information
eeckstein committed Mar 17, 2017
1 parent 0f87b5e commit a408060
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1,728 deletions.
8 changes: 0 additions & 8 deletions include/swift/Demangling/Demangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,16 +405,8 @@ void mangleIdentifier(const char *data, size_t length,
/// \brief Remangle a demangled parse tree.
///
/// This should always round-trip perfectly with demangleSymbolAsNode.
std::string mangleNodeOld(const NodePointer &root);

std::string mangleNode(const NodePointer &root);

inline std::string mangleNode(const NodePointer &root, bool NewMangling) {
if (NewMangling)
return mangleNode(root);
return mangleNodeOld(root);
}

/// \brief Transform the node structure to a string.
///
/// Typical usage:
Expand Down
1 change: 0 additions & 1 deletion lib/Demangling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ add_swift_library(swiftDemangling STATIC
NodeDumper.cpp
NodePrinter.cpp
OldDemangler.cpp
OldRemangler.cpp
Punycode.cpp
Remangler.cpp
)
Expand Down
Loading

0 comments on commit a408060

Please sign in to comment.