projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1126ac
)
Use weak_import on linux, weak everywhere else. Makes test pass on Linux.
author
Reid Spencer
<rspencer@reidspencer.com>
Sun, 3 Dec 2006 16:40:08 +0000
(16:40 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Sun, 3 Dec 2006 16:40:08 +0000
(16:40 +0000)
Checking for __APPLE_CC__ is useless as this just checks to see if the
compiler is llvm-gcc, which we know it is.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32158
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CFrontend/extern-weak.c
patch
|
blob
|
history
diff --git
a/test/CFrontend/extern-weak.c
b/test/CFrontend/extern-weak.c
index a36d16c8cc1588e39655703234367d90068a1286..ce9d77241b317612d6da8ae238fc17c4e6acf93f 100644
(file)
--- a/
test/CFrontend/extern-weak.c
+++ b/
test/CFrontend/extern-weak.c
@@
-1,7
+1,7
@@
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak &&
// RUN: %llvmgcc -O3 -S -o - -emit-llvm | llvm-as | llc
-#if
def __APPLE_CC
__
+#if
ndef __linux
__
void foo() __attribute__((weak_import));
#else
void foo() __attribute__((weak));