Skip to content

Commit 38d2edd

Browse files
author
Zachary Turner
committed
[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
1 parent f270c7c commit 38d2edd

File tree

3 files changed

+138
-138
lines changed

3 files changed

+138
-138
lines changed

llvm/lib/Demangle/MicrosoftDemangle.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ Demangler::demangleTemplateInstantiationName(StringView &MangledName,
994994
// Render this class template name into a string buffer so that we can
995995
// memorize it for the purpose of back-referencing.
996996
OutputStream OS = OutputStream::create(nullptr, nullptr, 1024);
997-
Identifier->output(OS);
997+
Identifier->output(OS, OF_Default);
998998
OS << '\0';
999999
char *Name = OS.getBuffer();
10001000

@@ -1422,7 +1422,7 @@ Demangler::demangleLocallyScopedNamePiece(StringView &MangledName) {
14221422
// Render the parent symbol's name into a buffer.
14231423
OutputStream OS = OutputStream::create(nullptr, nullptr, 1024);
14241424
OS << '`';
1425-
Scope->output(OS);
1425+
Scope->output(OS, OF_Default);
14261426
OS << '\'';
14271427
OS << "::`" << Number.first << "'";
14281428
OS << '\0';
@@ -2223,7 +2223,7 @@ void Demangler::dumpBackReferences() {
22232223
OS.setCurrentPosition(0);
22242224

22252225
TypeNode *T = Backrefs.FunctionParams[I];
2226-
T->output(OS);
2226+
T->output(OS, OF_Default);
22272227

22282228
std::printf(" [%d] - %.*s\n", (int)I, (int)OS.getCurrentPosition(),
22292229
OS.getBuffer());
@@ -2254,7 +2254,7 @@ char *llvm::microsoftDemangle(const char *MangledName, char *Buf, size_t *N,
22542254
OS << MangledName;
22552255
*Status = llvm::demangle_invalid_mangled_name;
22562256
} else {
2257-
S->output(OS);
2257+
S->output(OS, OF_Default);
22582258
*Status = llvm::demangle_success;
22592259
}
22602260

0 commit comments

Comments
 (0)