diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2008-12-19 10:55:56 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2008-12-19 10:55:56 +0000 |
commit | 2f6fea90a54787d873cfc25f33668cb4cc7d6e1e (patch) | |
tree | 6f60253965df296ed5310198772ec2eeb0bd5a95 /include | |
parent | d802be39d79fa31ea020f9af57830f8a20174b7b (diff) | |
download | external_llvm-2f6fea90a54787d873cfc25f33668cb4cc7d6e1e.zip external_llvm-2f6fea90a54787d873cfc25f33668cb4cc7d6e1e.tar.gz external_llvm-2f6fea90a54787d873cfc25f33668cb4cc7d6e1e.tar.bz2 |
Fix bug 3202.
The EH_frame and .eh symbols are now private, except for darwin9 and earlier.
The patch also fixes the definition of PrivateGlobalPrefix on pcc linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 3c71dc8..d4aadb9 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -646,6 +646,12 @@ namespace llvm { const char *getPrivateGlobalPrefix() const { return PrivateGlobalPrefix; } + /// EHGlobalPrefix - Prefix for EH_frame and the .eh symbols. + /// This is normally PrivateGlobalPrefix, but some targets want + /// these symbols to be visible. + virtual const char *getEHGlobalPrefix() const { + return PrivateGlobalPrefix; + } const char *getLessPrivateGlobalPrefix() const { return LessPrivateGlobalPrefix; } |