mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Subprogram is a scope. Derive DISubprogram from DIScope.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -494,7 +494,24 @@ void DIGlobal::dump() const {
|
||||
|
||||
/// dump - Print subprogram.
|
||||
void DISubprogram::dump() const {
|
||||
DIGlobal::dump();
|
||||
std::string Res;
|
||||
if (!getName(Res).empty())
|
||||
errs() << " [" << Res << "] ";
|
||||
|
||||
unsigned Tag = getTag();
|
||||
errs() << " [" << dwarf::TagString(Tag) << "] ";
|
||||
|
||||
// TODO : Print context
|
||||
getCompileUnit().dump();
|
||||
errs() << " [" << getLineNumber() << "] ";
|
||||
|
||||
if (isLocalToUnit())
|
||||
errs() << " [local] ";
|
||||
|
||||
if (isDefinition())
|
||||
errs() << " [def] ";
|
||||
|
||||
errs() << "\n";
|
||||
}
|
||||
|
||||
/// dump - Print global variable.
|
||||
|
Reference in New Issue
Block a user