[llvm] r263581 - Add Rust's personality function to the list of known personality functions
Bjorn Steinbrink via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 15 13:35:45 PDT 2016
Author: bsteinbr
Date: Tue Mar 15 15:35:45 2016
New Revision: 263581
URL: http://llvm.org/viewvc/llvm-project?rev=263581&view=rev
Log:
Add Rust's personality function to the list of known personality functions
Reviewers: majnemer
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D18192
Modified:
llvm/trunk/include/llvm/Analysis/EHPersonalities.h
llvm/trunk/lib/Analysis/EHPersonalities.cpp
Modified: llvm/trunk/include/llvm/Analysis/EHPersonalities.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/EHPersonalities.h?rev=263581&r1=263580&r2=263581&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/EHPersonalities.h (original)
+++ llvm/trunk/include/llvm/Analysis/EHPersonalities.h Tue Mar 15 15:35:45 2016
@@ -28,7 +28,8 @@ enum class EHPersonality {
MSVC_X86SEH,
MSVC_Win64SEH,
MSVC_CXX,
- CoreCLR
+ CoreCLR,
+ Rust
};
/// \brief See if the given exception handling personality function is one
Modified: llvm/trunk/lib/Analysis/EHPersonalities.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/EHPersonalities.cpp?rev=263581&r1=263580&r2=263581&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/EHPersonalities.cpp (original)
+++ llvm/trunk/lib/Analysis/EHPersonalities.cpp Tue Mar 15 15:35:45 2016
@@ -34,6 +34,7 @@ EHPersonality llvm::classifyEHPersonalit
.Case("__C_specific_handler", EHPersonality::MSVC_Win64SEH)
.Case("__CxxFrameHandler3", EHPersonality::MSVC_CXX)
.Case("ProcessCLRException", EHPersonality::CoreCLR)
+ .Case("rust_eh_personality", EHPersonality::Rust)
.Default(EHPersonality::Unknown);
}
More information about the llvm-commits
mailing list