summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-05-10 18:39:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-05-10 18:39:09 +0000
commite29887b4ee42ae78790a8c1886a7babee9ef18e5 (patch)
treecdedb6d61ea639cd21324f65f522b5a3f07f8ac5 /include/llvm/CodeGen/AsmPrinter.h
parent988397dcbcdb72ef1e9b07d9a6176cbfddbf0945 (diff)
downloadllvm-e29887b4ee42ae78790a8c1886a7babee9ef18e5.tar.gz
llvm-e29887b4ee42ae78790a8c1886a7babee9ef18e5.tar.bz2
llvm-e29887b4ee42ae78790a8c1886a7babee9ef18e5.tar.xz
Use .cfi_sections to put the unwind info in .debug_frame when possible. With
this clang will use .debug_frame in, for example, clang -g -c -m32 test.c This matches gcc's behaviour. It looks like .debug_frame is a bit bigger than .eh_frame, but has the big advantage of not being allocated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 336166a3fc..33224121bf 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -185,7 +185,12 @@ namespace llvm {
void emitPrologLabel(const MachineInstr &MI);
- bool needsCFIMoves();
+ enum CFIMoveType {
+ CFI_M_None,
+ CFI_M_EH,
+ CFI_M_Debug
+ };
+ CFIMoveType needsCFIMoves();
/// EmitConstantPool - Print to the current output stream assembly
/// representations of the constants in the constant pool MCP. This is