diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-09-18 01:47:22 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-09-18 01:47:22 +0000 |
commit | ef9211a831a5e63fc462c7a16a1a379882723893 (patch) | |
tree | 38536a441946b081dae2d1328a4cdb8c15fe5e21 /lib/CodeGen/AsmPrinter.cpp | |
parent | d00de0ece78776e8850119e6430b3c63da41fcb8 (diff) | |
download | external_llvm-ef9211a831a5e63fc462c7a16a1a379882723893.zip external_llvm-ef9211a831a5e63fc462c7a16a1a379882723893.tar.gz external_llvm-ef9211a831a5e63fc462c7a16a1a379882723893.tar.bz2 |
Objective-C was generating EH frame info like this:
"_-[NSString(local) isNullOrNil]".eh = 0
.no_dead_strip "_-[NSString(local) isNullOrNil]".eh
The ".eh" should be inside the quotes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 3d8dd75..e0a5928 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -160,6 +160,15 @@ bool AsmPrinter::doFinalization(Module &M) { return false; } +const std::string & +AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) { + assert(MF && "No machine function?"); + if (CurrentFnEHName != "") return CurrentFnEHName; + return CurrentFnEHName = + Mang->makeNameProper(MF->getFunction()->getName() + ".eh", + TAI->getGlobalPrefix()); +} + void AsmPrinter::SetupMachineFunction(MachineFunction &MF) { // What's my mangled name? CurrentFnName = Mang->getValueName(MF.getFunction()); |