summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitb1f2934fc73d4832a1772d70208f726cafefb7df (patch)
tree8d528da90bff5585eaa90fc1eb0354136c04355e /llvm/include
parent826d77fb07a026d9cf8ff4579bf4a77d497b684b (diff)
downloadbcm5719-llvm-b1f2934fc73d4832a1772d70208f726cafefb7df.tar.gz
bcm5719-llvm-b1f2934fc73d4832a1772d70208f726cafefb7df.zip
hookize the cygwin ".linkonce" directive.
llvm-svn: 93855
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/MC/MCAsmInfo.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/include/llvm/MC/MCAsmInfo.h b/llvm/include/llvm/MC/MCAsmInfo.h
index a340a121384..22f147587cd 100644
--- a/llvm/include/llvm/MC/MCAsmInfo.h
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud