summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineModuleInfo.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-07-22 21:17:05 +0000
committerBill Wendling <isanbard@gmail.com>2011-07-22 21:17:05 +0000
commit1359c6d71858c0de618474e5a51efaced42deca6 (patch)
treea72d55bd94cb89a5ee9364fb9184933dcdbd7c9e /include/llvm/CodeGen/MachineModuleInfo.h
parentdda1bdc962a314bf4fca86f4cd4802ff6c55b172 (diff)
downloadllvm-1359c6d71858c0de618474e5a51efaced42deca6.tar.gz
llvm-1359c6d71858c0de618474e5a51efaced42deca6.tar.bz2
llvm-1359c6d71858c0de618474e5a51efaced42deca6.tar.xz
Add a method to set the compact unwind info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineModuleInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h
index 1828bcf467..f8f74153f5 100644
--- a/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/include/llvm/CodeGen/MachineModuleInfo.h
@@ -239,6 +239,10 @@ public:
/// function's CIE and FDE.
uint32_t getCompactUnwindEncoding() const { return CompactUnwindEncoding; }
+ /// setCompactUnwindEncoding - Set the compact unwind encoding for a function
+ /// if the target supports the encoding.
+ void setCompactUnwindEncoding(uint32_t Enc) { CompactUnwindEncoding = Enc; }
+
/// getAddrLabelSymbol - Return the symbol to be used for the specified basic
/// block when its address is taken. This cannot be its normal LBB label
/// because the block may be accessed outside its containing function.