I am writing a llvm pass where I need the base name of a function, for example,
mangled name is ZSt3minIfERKT_S2_S2
demangled name is float const& std::min(float const&, float const&)
but I need the base name which is min
I have seen some llvm API defined in -
#include "llvm/Demangle/Demangle.h"
#include <cxxabi.h>
#include "llvm/Demangle/ItaniumDemangle.h"
but I was not able to properly use that. Any help is appreciated