diff options
author | Zachary Turner <zturner@google.com> | 2018-08-29 03:59:17 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-08-29 03:59:17 +0000 |
commit | 38d2edd60dc694abf5dbf7feaaa65f7142e973f5 (patch) | |
tree | ba5140dc6516b74ff1e29e033d4d854e28043e2c /llvm/lib/Demangle/MicrosoftDemangle.cpp | |
parent | f270c7c9e9eb640d96dc8664b3ca217dd28fdbd3 (diff) | |
download | llvm-38d2edd60dc694abf5dbf7feaaa65f7142e973f5.zip llvm-38d2edd60dc694abf5dbf7feaaa65f7142e973f5.tar.gz llvm-38d2edd60dc694abf5dbf7feaaa65f7142e973f5.tar.bz2 |
[MS Demangler] Add output flags to all function calls.
Previously we had a FunctionSigFlags, but it's more flexible
to just have one set of output flags that apply to the entire
process and just pipe the entire set of flags through the
output process.
This will be useful when we start allowing the user to customize
the outputting behavior.
llvm-svn: 340894
Diffstat (limited to 'llvm/lib/Demangle/MicrosoftDemangle.cpp')
-rw-r--r-- | llvm/lib/Demangle/MicrosoftDemangle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Demangle/MicrosoftDemangle.cpp b/llvm/lib/Demangle/MicrosoftDemangle.cpp index b8b16ef..0eb0c6d 100644 --- a/llvm/lib/Demangle/MicrosoftDemangle.cpp +++ b/llvm/lib/Demangle/MicrosoftDemangle.cpp @@ -994,7 +994,7 @@ Demangler::demangleTemplateInstantiationName(StringView &MangledName, // Render this class template name into a string buffer so that we can // memorize it for the purpose of back-referencing. OutputStream OS = OutputStream::create(nullptr, nullptr, 1024); - Identifier->output(OS); + Identifier->output(OS, OF_Default); OS << '\0'; char *Name = OS.getBuffer(); @@ -1422,7 +1422,7 @@ Demangler::demangleLocallyScopedNamePiece(StringView &MangledName) { // Render the parent symbol's name into a buffer. OutputStream OS = OutputStream::create(nullptr, nullptr, 1024); OS << '`'; - Scope->output(OS); + Scope->output(OS, OF_Default); OS << '\''; OS << "::`" << Number.first << "'"; OS << '\0'; @@ -2223,7 +2223,7 @@ void Demangler::dumpBackReferences() { OS.setCurrentPosition(0); TypeNode *T = Backrefs.FunctionParams[I]; - T->output(OS); + T->output(OS, OF_Default); std::printf(" [%d] - %.*s\n", (int)I, (int)OS.getCurrentPosition(), OS.getBuffer()); @@ -2254,7 +2254,7 @@ char *llvm::microsoftDemangle(const char *MangledName, char *Buf, size_t *N, OS << MangledName; *Status = llvm::demangle_invalid_mangled_name; } else { - S->output(OS); + S->output(OS, OF_Default); *Status = llvm::demangle_success; } |