OSDN Git Service

Mark static member functions as static in CodeViewDebug
authorAdrian McCarthy <amccarth@google.com>
Wed, 13 Sep 2017 20:53:55 +0000 (20:53 +0000)
committerAdrian McCarthy <amccarth@google.com>
Wed, 13 Sep 2017 20:53:55 +0000 (20:53 +0000)
commit2029d1efeb063352f9e4b1ff4e71b569c1a13eaf
tree5bb25af6a2042d4be7d5df3de05e4c48791ce1e1
parenta768fcb2648b65efb3f3afc0581ac04cc4ce8d2d
Mark static member functions as static in CodeViewDebug

Summary:
To improve CodeView quality for static member functions, we need to make the
static explicit.  In addition to a small change in LLVM's CodeViewDebug to
return the appropriate MethodKind, this requires a small change in Clang to
note the staticness in the debug info metadata.

Subscribers: aprantl, hiraditya

Differential Revision: https://reviews.llvm.org/D37715

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313192 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
lib/CodeGen/AsmPrinter/CodeViewDebug.h
test/DebugInfo/COFF/static-methods.ll [new file with mode: 0644]