396b4afdad9cadf40d745f0be8156c2e80b8bc9d |
|
04-May-2010 |
John McCall <rjmccall@apple.com> |
Emit the globals, metadata, etc. associated with static variables even when they're unreachable. This matters because (if they're POD, or if this is C) the scope containing the variable might be reachable even if the variable isn't. Fixes PR7044. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103052 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
3573b2c84372d9484296fa658f5276f6c09acb92 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
a4996b889ffe46f13e7f81d14a31bc22342ed368 |
|
08-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Eliminate &&s in tests. - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86430 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
25cf760b54d3b88633827501013bc51a29b28aba |
|
09-Sep-2009 |
Mike Stump <mrs@apple.com> |
Remove tabs, and whitespace cleanups. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
cfb095216ddf3922d25a479da8430a54eb4068ec |
|
19-May-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Remove the -arch option from clang-cc: for all practical purposes, it's redundant with -triple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72108 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
ffd408a50adb01ae9c0ad92fb5f0981e1ca72df5 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
f69d19e634d76a675a6efba85af57a6eebeea7d7 |
|
17-Feb-2009 |
Daniel Dunbar <daniel@zuster.org> |
Change EmitConstantExpr to allow failure. IRgen no longer relies on isConstantInitializer, instead we just try to emit the constant. If that fails then in C we emit an error unsupported (this occurs when Sema accepted something that it doesn't know how to fold, and IRgen doesn't know how to emit) and in C++ we emit a guarded initializer. This ends up handling a few more cases, because IRgen was actually able to emit some of the constants Sema accepts but can't Evaluate(). For example, PR3398. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64780 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
a7fa2aa49c075fe5fc82f37fc4ff447be0a492bb |
|
24-Nov-2008 |
Anders Carlsson <andersca@mac.com> |
Reimplement Expr::isConstantExpr in terms of Expr::Evaluate. This fixes PR2832. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59946 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
934fb023ee1feadb9e2225c46a8d816f921b8b12 |
|
26-Feb-2008 |
Lauro Ramos Venancio <lauro.venancio@gmail.com> |
Implement codegen for the following static var init. void g() { static char a[10]; static char *b = a; } Now we can compile wget! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
253e0a7a1192cea6d4e684a27e7d723915d07a4f |
|
02-Dec-2007 |
Oliver Hunt <oliver@apple.com> |
Support initalisers for more than just int-typed static variables. We now use the CodeGenModule logic for generating the constant initialiser expression, so happily further initialiser fixes should automatically work for statics as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44495 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|
2ecd9011b3bcb1a76c7a12f19a74443869e16664 |
|
26-Oct-2007 |
Devang Patel <dpatel@apple.com> |
Code gen static initializer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43386 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/staticinit.c
|