aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-01-14 22:47:54 +0000
committerReid Kleckner <reid@kleckner.net>2015-01-14 22:47:54 +0000
commite80a0a7572757c0925de541a660fc2e242e45417 (patch)
tree6477b9fd31cf302b6b9c8261e3298edce5fd053f /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent8d3ef611cef5780f62480eb4d84915a635374f31 (diff)
downloadllvm-e80a0a7572757c0925de541a660fc2e242e45417.zip
llvm-e80a0a7572757c0925de541a660fc2e242e45417.tar.gz
llvm-e80a0a7572757c0925de541a660fc2e242e45417.tar.bz2
Use MMI->getPersonality() instead of MMI->getPersonalities()[MMI->getPersonalityIndex()]
Also nuke the comment about supporting multiple personalities in a single function, aka PR1414. That's just crazy. llvm-svn: 226052
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index 32d51128..b5a3192 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp
@@ -554,8 +554,6 @@ try_next:;
/// getPersonality - Return the personality function for the current function.
const Function *MachineModuleInfo::getPersonality() const {
- // FIXME: Until PR1414 will be fixed, we're using 1 personality function per
- // function
return !LandingPads.empty() ? LandingPads[0].Personality : nullptr;
}