diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-09-01 23:48:39 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-09-01 23:48:39 +0000 |
commit | d1a4ed6a7c333d102ea537a227dc72c6ba90b1df (patch) | |
tree | 64e4153ce2fef1da1ea6563ccd7753e59a0b8881 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 0fba7b58565ac528d9acb1dedb8228323f9396e5 (diff) | |
download | bcm5719-llvm-d1a4ed6a7c333d102ea537a227dc72c6ba90b1df.tar.gz bcm5719-llvm-d1a4ed6a7c333d102ea537a227dc72c6ba90b1df.zip |
CodeGen: indicate Windows unwind data format
The structures for Windows unwinding are shared across multiple platforms.
Indicate the encoding to be used for the particular target. Use this to switch
the unwind emitter instantiated by the AsmPrinter.
llvm-svn: 216895
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index c2fd91830f5..4319a577117 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -244,7 +244,12 @@ bool AsmPrinter::doInitialization(Module &M) { ES = new ARMException(this); break; case ExceptionHandling::WinEH: - ES = new Win64Exception(this); + switch (MAI->getWinEHEncodingType()) { + default: llvm_unreachable("unsupported unwinding information encoding"); + case WinEH::EncodingType::Itanium: + ES = new Win64Exception(this); + break; + } break; } if (ES) |