diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:35:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:35:39 +0000 |
commit | 6b99ae882bbc667f1b4797fcea1e81062d4a361c (patch) | |
tree | 27f1927606b37e2fcfd09b779f6dd988f8456174 /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | 6cc46577f439d0ebfa572804f74efeb573c1cfaf (diff) | |
download | bcm5719-llvm-6b99ae882bbc667f1b4797fcea1e81062d4a361c.tar.gz bcm5719-llvm-6b99ae882bbc667f1b4797fcea1e81062d4a361c.zip |
inline AsmPrinter::getCurrentFunctionEHName into its only caller.
llvm-svn: 81970
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index f8e8009cd0c..06f9590dd6c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -960,9 +960,12 @@ void DwarfException::EndFunction() { EmitLabel("eh_func_end", SubprogramCount); EmitExceptionTable(); + std::string FunctionEHName = + Asm->Mang->getMangledName(MF->getFunction(), ".eh", + Asm->MAI->is_EHSymbolPrivate()); + // Save EH frame information - EHFrames.push_back(FunctionEHFrameInfo(getAsm()->getCurrentFunctionEHName(MF), - SubprogramCount, + EHFrames.push_back(FunctionEHFrameInfo(FunctionEHName, SubprogramCount, MMI->getPersonalityIndex(), MF->getFrameInfo()->hasCalls(), !MMI->getLandingPads().empty(), |