This reverts commit r198441.
This change doesn't build on Windows, and doesn't do the right thing on
Linux and other platforms that don't use a _Z prefix instead of __Z for
C++ names.
It also had no tests, so it wasn't clear how to fix it forward.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198445
91177308-0d34-0410-b5e6-
96231b3b80d8
emitLatency(DC, Inst);
emitComments(DC, FormattedOS);
- OS.flush();
assert(OutStringSize != 0 && "Output buffer cannot be zero size");
size_t OutputSize = std::min(OutStringSize-1, InsnStr.size());
#include "llvm/MC/MCInst.h"
#include "llvm/Support/raw_ostream.h"
#include <cstring>
-#include <cxxabi.h>
using namespace llvm;
if (Name) {
SymbolicOp.AddSymbol.Name = Name;
SymbolicOp.AddSymbol.Present = true;
- // If Name is a C++ symbol name put the human readable name in a comment.
- if (strncmp(Name, "__Z", 3) == 0) {
- char *demangled = abi::__cxa_demangle(Name + 1, 0, 0, 0);
- if (demangled) {
- cStream << demangled;
- free(demangled);
- }
- }
}
// For branches always create an MCExpr so it gets printed as hex address.
else if (IsBranch) {