diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-24 01:25:10 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-24 01:25:10 +0000 |
commit | 31f2900ae662b0b737f8d20605d83468ff3aa59c (patch) | |
tree | 1d88a3e65b4ac6066430aacbe5c0a0d4b9cdc7a2 /llvm/lib/CodeGen/AsmPrinter | |
parent | 18d337508ca31e81687d125edb8c1be48cbaea79 (diff) | |
download | bcm5719-llvm-31f2900ae662b0b737f8d20605d83468ff3aa59c.tar.gz bcm5719-llvm-31f2900ae662b0b737f8d20605d83468ff3aa59c.zip |
Remove unused parameter
llvm-svn: 207061
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 | ||||
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 531c44cde4c..bc155f4f031 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -271,8 +271,7 @@ static bool SectionSort(const MCSection *A, const MCSection *B) { // TODO: Determine whether or not we should add names for programs // that do not have a DW_AT_name or DW_AT_linkage_name field - this // is only slightly different than the lookup of non-standard ObjC names. -void DwarfDebug::addSubprogramNames(DwarfUnit &TheU, DISubprogram SP, - DIE *Die) { +void DwarfDebug::addSubprogramNames(DISubprogram SP, DIE *Die) { if (!SP.isDefinition()) return; addAccelName(SP.getName(), Die); @@ -359,7 +358,7 @@ DIE *DwarfDebug::updateSubprogramScopeDIE(DwarfCompileUnit &SPCU, // Add name to the name table, we do this here because we're guaranteed // to have concrete versions of our DW_TAG_subprogram nodes. - addSubprogramNames(SPCU, SP, SPDie); + addSubprogramNames(SP, SPDie); return SPDie; } @@ -501,7 +500,7 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DwarfCompileUnit &TheCU, // Add name to the name table, we do this here because we're guaranteed // to have concrete versions of our DW_TAG_inlined_subprogram nodes. - addSubprogramNames(TheCU, InlinedSP, ScopeDIE); + addSubprogramNames(InlinedSP, ScopeDIE); return ScopeDIE; } diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 02887b10fd0..5e8ef28a871 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -640,7 +640,7 @@ public: /// or another context nested inside a subprogram. bool isSubprogramContext(const MDNode *Context); - void addSubprogramNames(DwarfUnit &TheU, DISubprogram SP, DIE *Die); + void addSubprogramNames(DISubprogram SP, DIE *Die); AddressPool &getAddressPool() { return AddrPool; } |