Preparation step for some cleanup/generalization in EH information emission:
provide TAI hook for selection of EH data emission format. Currently unused.
llvm-svn: 47699
diff --git a/llvm/lib/Target/TargetAsmInfo.cpp b/llvm/lib/Target/TargetAsmInfo.cpp
index bcc2f6e..f66d0ff 100644
--- a/llvm/lib/Target/TargetAsmInfo.cpp
+++ b/llvm/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;
+}
+