(original) (raw)

The subprogram DIE provides the return type in DW\_AT\_type. Formal parameters are described using children of the subprogram DIE; note that the formal\_parameter DIEs are required to be in the correct order, but are not required to be consective (that is, you need to look at all the direct children of the subprogram DIE). Also, implicit parameters will be described explicitly in the DWARF; this includes things like a hidden return-value pointer, or the 'this' pointer for a C++ class method. Implicit parameters ought to have the DW\_AT\_artificial flag.

Hope this helps,

--paulr

From: llvm-dev \[mailto:llvm-dev-bounces@lists.llvm.org\] On Behalf Of Muhui Jiang via llvm-dev
Sent: Saturday, September 29, 2018 9:09 AM
To: llvm-dev
Subject: \[llvm-dev\] Function Signature

Hi

I was wondering whether I can extract the function signature from the dwarf debugging information or symbol table. I mean the argument list and the return variables.

I know that in dwarf debugging information, a subprogram represents a function. However, I could not find the information that is related to the function signature. Any ideas? Many Thanks

Regards

Muhui