summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCAsmInfo.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2011-01-14 21:58:08 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2011-01-14 21:58:08 +0000
commit3965b5e974d57f3e56a2c7f37d76d73e572dfb20 (patch)
tree37c2d97895d4f254c7f1a27125d73997523e0273 /include/llvm/MC/MCAsmInfo.h
parente749911372c75e4e68f83a32b4092f4ffb0d2793 (diff)
downloadllvm-3965b5e974d57f3e56a2c7f37d76d73e572dfb20.tar.gz
llvm-3965b5e974d57f3e56a2c7f37d76d73e572dfb20.tar.bz2
llvm-3965b5e974d57f3e56a2c7f37d76d73e572dfb20.tar.xz
Add a possibility to switch between CFI directives- and table-based frame description emission. Currently all the backends use table-based stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmInfo.h')
-rw-r--r--include/llvm/MC/MCAsmInfo.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index fb80cc4f3a..9cfd0048a6 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -25,7 +25,9 @@ namespace llvm {
/// MCAsmInfo - This class is intended to be used as a base class for asm
/// properties and features specific to the target.
- namespace ExceptionHandling { enum ExceptionsType { None, Dwarf, SjLj }; }
+ namespace ExceptionHandling {
+ enum ExceptionsType { None, DwarfTable, DwarfCFI, SjLj };
+ }
class MCAsmInfo {
protected:
@@ -438,6 +440,12 @@ namespace llvm {
ExceptionHandling::ExceptionsType getExceptionHandlingType() const {
return ExceptionsType;
}
+ bool isExceptionHandlingDwarf() const {
+ return
+ (ExceptionsType == ExceptionHandling::DwarfTable ||
+ ExceptionsType == ExceptionHandling::DwarfCFI);
+ }
+
bool doesDwarfRequireFrameSection() const {
return DwarfRequiresFrameSection;
}