diff options
author | Reid Kleckner <rnk@google.com> | 2016-01-13 19:32:35 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-01-13 19:32:35 +0000 |
commit | 72e2ba7abb17a5d509df45451c546b9ac5de743f (patch) | |
tree | 209f68da6cef60b984bf971da7dfbbafba07a128 /llvm/tools/llvm-pdbdump/FunctionDumper.cpp | |
parent | a39ca601262f2709c5b936a25f3d99c35dc84411 (diff) | |
download | bcm5719-llvm-72e2ba7abb17a5d509df45451c546b9ac5de743f.tar.gz bcm5719-llvm-72e2ba7abb17a5d509df45451c546b9ac5de743f.zip |
[readobj] Expand CodeView dumping functionality
This rewrites and expands the existing codeview dumping functionality in
llvm-readobj using techniques similar to those in lib/Object. This defines a
number of new records and enums useful for reading memory mapped codeview
sections in COFF objects.
The dumper is intended as a testing tool for LLVM as it grows more codeview
output capabilities.
Reviewers: majnemer
Differential Revision: http://reviews.llvm.org/D16104
llvm-svn: 257658
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() << " "; } |