diff options
author | Dale Johannesen <dalej@apple.com> | 2008-01-10 02:03:30 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-01-10 02:03:30 +0000 |
commit | f09b5999df8d9cbbd69dad7fb5cd61271c0a8000 (patch) | |
tree | 66443ca4484e5f02b8e33323cfe31c7f0ce6fa69 /include | |
parent | ab9a00c3bfe31c58a5f96897a8f5764b9dd41008 (diff) | |
download | external_llvm-f09b5999df8d9cbbd69dad7fb5cd61271c0a8000.zip external_llvm-f09b5999df8d9cbbd69dad7fb5cd61271c0a8000.tar.gz external_llvm-f09b5999df8d9cbbd69dad7fb5cd61271c0a8000.tar.bz2 |
Emit unused EH frames for weak definitions on Darwin,
because assembler/linker can't cope with weak absolutes.
PR 1880.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index c318275..8192b46 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -309,6 +309,10 @@ namespace llvm { /// const char *GlobalEHDirective; // Defaults to NULL. + /// SupportsWeakEmptyEHFrame - True if target assembler and linker will + /// handle a weak_definition of constant 0 for an omitted EH frame. + bool SupportsWeakOmittedEHFrame; // Defaults to true. + /// DwarfSectionOffsetDirective - Special section offset directive. const char* DwarfSectionOffsetDirective; // Defaults to NULL @@ -585,6 +589,9 @@ namespace llvm { const char *getGlobalEHDirective() const { return GlobalEHDirective; } + bool getSupportsWeakOmittedEHFrame() const { + return SupportsWeakOmittedEHFrame; + } const char *getDwarfSectionOffsetDirective() const { return DwarfSectionOffsetDirective; } |