aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-09-11 08:27:17 +0000
committerBill Wendling <isanbard@gmail.com>2007-09-11 08:27:17 +0000
commitd60da495cd5c6bc119b3489e6b3147158735bb99 (patch)
treed26aa4b527b45bdc2f8b0f53673cd5e6a763363f /include/llvm/Target
parent29ce95511f905df3a63e3b953a4a0179ead46865 (diff)
downloadexternal_llvm-d60da495cd5c6bc119b3489e6b3147158735bb99.zip
external_llvm-d60da495cd5c6bc119b3489e6b3147158735bb99.tar.gz
external_llvm-d60da495cd5c6bc119b3489e6b3147158735bb99.tar.bz2
The personality function on Darwin needs a global stub. We then refer to
that global stub instead of doing the ".set" thingy we were doing before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index 92d6192..97eaa35 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -110,6 +110,12 @@ namespace llvm {
const char *FunctionAddrPrefix; // Defaults to ""
const char *FunctionAddrSuffix; // Defaults to ""
+ /// PersonalityPrefix/Suffix - If these are nonempty, these strings will
+ /// enclose any personality function in the common frame section.
+ ///
+ const char *PersonalityPrefix; // Defaults to ""
+ const char *PersonalitySuffix; // Defaults to ""
+
/// InlineAsmStart/End - If these are nonempty, they contain a directive to
/// emit before and after an inline assembly statement.
const char *InlineAsmStart; // Defaults to "#APP\n"
@@ -428,6 +434,12 @@ namespace llvm {
const char *getFunctionAddrSuffix() const {
return FunctionAddrSuffix;
}
+ const char *getPersonalityPrefix() const {
+ return PersonalityPrefix;
+ }
+ const char *getPersonalitySuffix() const {
+ return PersonalitySuffix;
+ }
const char *getInlineAsmStart() const {
return InlineAsmStart;
}