diff options
Diffstat (limited to 'llvm/tools/llvm-pdbdump/FunctionDumper.cpp')
-rw-r--r-- | llvm/tools/llvm-pdbdump/FunctionDumper.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/tools/llvm-pdbdump/FunctionDumper.cpp b/llvm/tools/llvm-pdbdump/FunctionDumper.cpp index 9584812e81a..7f4181722e7 100644 --- a/llvm/tools/llvm-pdbdump/FunctionDumper.cpp +++ b/llvm/tools/llvm-pdbdump/FunctionDumper.cpp @@ -27,6 +27,7 @@ #include "llvm/Support/Format.h" using namespace llvm; +using namespace llvm::codeview; namespace { template <class T> @@ -57,10 +58,10 @@ void FunctionDumper::start(const PDBSymbolTypeFunctionSig &Symbol, Symbol.getSession().getConcreteSymbolById<PDBSymbolTypeUDT>( ClassParentId); - PDB_CallingConv CC = Symbol.getCallingConvention(); + CallingConvention CC = Symbol.getCallingConvention(); bool ShouldDumpCallingConvention = true; - if ((ClassParent && CC == PDB_CallingConv::Thiscall) || - (!ClassParent && CC == PDB_CallingConv::NearStdcall)) { + if ((ClassParent && CC == CallingConvention::ThisCall) || + (!ClassParent && CC == CallingConvention::NearStdCall)) { ShouldDumpCallingConvention = false; } @@ -152,12 +153,12 @@ void FunctionDumper::start(const PDBSymbolFunc &Symbol, PointerType Pointer) { Printer << " "; auto ClassParent = Symbol.getClassParent(); - PDB_CallingConv CC = Signature->getCallingConvention(); + CallingConvention CC = Signature->getCallingConvention(); if (Pointer != FunctionDumper::PointerType::None) Printer << "("; - if ((ClassParent && CC != PDB_CallingConv::Thiscall) || - (!ClassParent && CC != PDB_CallingConv::NearStdcall)) { + if ((ClassParent && CC != CallingConvention::ThisCall) || + (!ClassParent && CC != CallingConvention::NearStdCall)) { WithColor(Printer, PDB_ColorItem::Keyword).get() << Signature->getCallingConvention() << " "; } |