aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-19 05:08:13 +0000
committerChris Lattner <sabre@nondot.org>2010-01-19 05:08:13 +0000
commit41eb8b47717e1fe1a6d0e99ec1b4e890091f77aa (patch)
tree13443fbd3a1304ce293c9637c200370af2007928 /include
parent619ea855e72bb67f14ef78d942b84368ca9ab4ae (diff)
downloadexternal_llvm-41eb8b47717e1fe1a6d0e99ec1b4e890091f77aa.zip
external_llvm-41eb8b47717e1fe1a6d0e99ec1b4e890091f77aa.tar.gz
external_llvm-41eb8b47717e1fe1a6d0e99ec1b4e890091f77aa.tar.bz2
hookize the cygwin ".linkonce" directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAsmInfo.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index a340a12..22f1475 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -226,6 +226,10 @@ namespace llvm {
/// WeakDefDirective - This directive, if non-null, is used to declare a
/// global as being a weak defined symbol.
const char *WeakDefDirective; // Defaults to NULL.
+
+ /// LinkOnceDirective - This directive, if non-null is used to declare a
+ /// global as being a weak defined symbol. This is used on cygwin/mingw.
+ const char *LinkOnceDirective; // Defaults to NULL.
/// HiddenDirective - This directive, if non-null, is used to declare a
/// global or function as having hidden visibility.
@@ -426,12 +430,9 @@ namespace llvm {
const char *getUsedDirective() const {
return UsedDirective;
}
- const char *getWeakRefDirective() const {
- return WeakRefDirective;
- }
- const char *getWeakDefDirective() const {
- return WeakDefDirective;
- }
+ const char *getWeakRefDirective() const { return WeakRefDirective; }
+ const char *getWeakDefDirective() const { return WeakDefDirective; }
+ const char *getLinkOnceDirective() const { return LinkOnceDirective; }
const char *getHiddenDirective() const {
return HiddenDirective;
}