Preparation step for some cleanup/generalization in EH information emission:
provide TAI hook for selection of EH data emission format. Currently unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47699 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp
index bcc2f6e..f66d0ff 100644
--- a/lib/Target/TargetAsmInfo.cpp
+++ b/lib/Target/TargetAsmInfo.cpp
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Target/TargetAsmInfo.h"
+#include "llvm/Support/Dwarf.h"
#include <cctype>
#include <cstring>
@@ -134,3 +135,8 @@
return Length;
}
+unsigned TargetAsmInfo::PreferredEHDataFormat(unsigned Reason,
+ bool Global) const {
+ return dwarf::DW_EH_PE_absptr;
+}
+