#
c080917e |
| 12-Jun-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Replace llvm::error_code with std::error_code.
llvm-svn: 210780
|
#
35ab328e |
| 11-Jun-2014 |
David Majnemer <david.majnemer@gmail.com> |
CodeGen: Correct linkage of thread_local for OS X
The backing store of thread local variables is internal for OS X and all accesses must go through the thread wrapper.
However, individual TUs may h
CodeGen: Correct linkage of thread_local for OS X
The backing store of thread local variables is internal for OS X and all accesses must go through the thread wrapper.
However, individual TUs may have inlined through the thread wrapper. To fix this, give the thread wrapper functions WeakAnyLinkage. This prevents them from getting inlined into call-sites.
This fixes PR19989.
llvm-svn: 210632
show more ...
|
#
4b56692e |
| 09-Jun-2014 |
Craig Topper <craig.topper@gmail.com> |
[C++11] Use 'nullptr'.
llvm-svn: 210448
|
#
fb8d02b1 |
| 05-Jun-2014 |
Alp Toker <alp@nuanti.com> |
Implement -Wframe-larger-than backend diagnostic
Add driver and frontend support for the GCC -Wframe-larger-than=bytes warning. This is the first GCC-compatible backend diagnostic built around LLVM'
Implement -Wframe-larger-than backend diagnostic
Add driver and frontend support for the GCC -Wframe-larger-than=bytes warning. This is the first GCC-compatible backend diagnostic built around LLVM's reporting feature.
This commit adds infrastructure to perform reverse lookup from mangled names emitted after LLVM IR generation. We use that to resolve precise locations and originating AST functions, lambdas or block declarations to produce seamless codegen-guided diagnostics.
An associated change, StringMap now maintains unique mangled name strings instead of allocating copies. This is a net memory saving in C++ and a small hit for C where we no longer reuse IdentifierInfo storage, pending further optimisation.
llvm-svn: 210293
show more ...
|
#
adc9037b |
| 04-Jun-2014 |
Alexey Samsonov <vonosmas@gmail.com> |
Remove the overload of GetAddrOfConstantString method
llvm-svn: 210214
|
#
175e52f5 |
| 04-Jun-2014 |
Alexey Samsonov <vonosmas@gmail.com> |
Refactor and generalize GetAddrOfConstantString and GetAddrOfConstantStringFromLiteral.
Share mode code between these functions and re-structure them in a way which shows how similar they actually a
Refactor and generalize GetAddrOfConstantString and GetAddrOfConstantStringFromLiteral.
Share mode code between these functions and re-structure them in a way which shows how similar they actually are. The latter function works well with literals of multi-byte chars and does a GlobalVariable name mangling (if global strings are non-writable).
No functionality change.
llvm-svn: 210212
show more ...
|
#
e11f40a9 |
| 04-Jun-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
This cast is not necessary any more (llvm api change).
llvm-svn: 210206
|
#
27c60b51 |
| 03-Jun-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm API change.
Aliases in llvm now hold an arbitrary expression.
llvm-svn: 210063
|
#
0e64e0d4 |
| 03-Jun-2014 |
Alp Toker <alp@nuanti.com> |
Eliminate redundant MangleBuffer class
The only remaining user didn't actually use the non-dynamic storage facility this class provides.
The std::string is transitional and likely to be StringRefiz
Eliminate redundant MangleBuffer class
The only remaining user didn't actually use the non-dynamic storage facility this class provides.
The std::string is transitional and likely to be StringRefized shortly.
llvm-svn: 210058
show more ...
|
#
b4662c3e |
| 29-May-2014 |
Nico Rieck <nico.rieck@gmail.com> |
MS ABI: Emit static data members with proper linkage
llvm-svn: 209826
|
#
c054d981 |
| 29-May-2014 |
Alexey Samsonov <vonosmas@gmail.com> |
[ASan] Hoist blacklisting globals from init-order checking to Clang.
Clang knows about the sanitizer blacklist and it makes no sense to add global to the list of llvm.asan.dynamically_initialized_gl
[ASan] Hoist blacklisting globals from init-order checking to Clang.
Clang knows about the sanitizer blacklist and it makes no sense to add global to the list of llvm.asan.dynamically_initialized_globals if it will be blacklisted in the instrumentation pass anyway. Instead, we should do as much blacklisting as possible (if not all) in the frontend.
llvm-svn: 209789
show more ...
|
#
275efb9e |
| 28-May-2014 |
Hans Wennborg <hans@hanshq.net> |
Don't dllimport/export destructor variants implemented by thunks.
MSVC doesn't export these functions, so trying to import them doesnt' work. Also, don't let any dll attributes on the CXXDestructorD
Don't dllimport/export destructor variants implemented by thunks.
MSVC doesn't export these functions, so trying to import them doesnt' work. Also, don't let any dll attributes on the CXXDestructorDecl influence the thunk's linkage -- they should always be linkonce_odr.
This takes care of the FIXME's for this in Nico's tests.
Differential Revision: http://reviews.llvm.org/D3930
llvm-svn: 209706
show more ...
|
#
563f0e85 |
| 23-May-2014 |
Reid Kleckner <reid@kleckner.net> |
Use comdats to avoid double initialization of weak data
Initializers of global data that can appear multiple TUs (static data members of class templates or __declspec(selectany) data) are now in a c
Use comdats to avoid double initialization of weak data
Initializers of global data that can appear multiple TUs (static data members of class templates or __declspec(selectany) data) are now in a comdat group keyed on the global variable being initialized. On non-Windows platforms, this is a code size and startup time optimization. On Windows, this is necessary for ABI compatibility with MSVC.
Fixes PR16959.
Reviewers: rsmith
Differential Revision: http://reviews.llvm.org/D3811
llvm-svn: 209555
show more ...
|
#
b73c973d |
| 22-May-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't set unnamed_addr in CreateRuntimeVariable.
This was fairly broken. For example,
@__dso_handle would or would not get an unnamed_addr depending on how many global destructors were used in a tr
Don't set unnamed_addr in CreateRuntimeVariable.
This was fairly broken. For example,
@__dso_handle would or would not get an unnamed_addr depending on how many global destructors were used in a translation unit.
The consensus was that not every runtime variable is unnamed_addr and that __dso_handle handle should not be, so just don't add unnamed_addr in CreateRuntimeVariable.
llvm-svn: 209484
show more ...
|
#
8a13c418 |
| 21-May-2014 |
Craig Topper <craig.topper@gmail.com> |
[C++11] Use 'nullptr'. CodeGen edition.
llvm-svn: 209272
|
#
2dbdd20d |
| 19-May-2014 |
Adrian Prantl <aprantl@apple.com> |
Demote the "Debug Info Version" module flag to llvm::Module::Warning behavior on mismatch. The AutoUpgrader will drop incompatible debug info any way and also emit a warning diagnostic for it.
rdar:
Demote the "Debug Info Version" module flag to llvm::Module::Warning behavior on mismatch. The AutoUpgrader will drop incompatible debug info any way and also emit a warning diagnostic for it.
rdar://problem/16926122
llvm-svn: 209182
show more ...
|
#
234405bd |
| 17-May-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm api change.
llvm-svn: 209077
|
#
6172277e |
| 17-May-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm api change.
llvm-svn: 209074
|
#
0fcad883 |
| 16-May-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use getAliasee instead of getAliasedGlobal.
No functionality change.
llvm-svn: 209038
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1 |
|
#
b2633b97 |
| 16-May-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm api change.
Now that llvm cannot represent alias cycles, we have to diagnose erros just before trying to close the cycle. This degrades the errors a bit. The real solution is what it
Update for llvm api change.
Now that llvm cannot represent alias cycles, we have to diagnose erros just before trying to close the cycle. This degrades the errors a bit. The real solution is what it was before: if we want to provide good errors for these cases, we have to be able to find a clang level decl given a mangled name and produce the error from Sema.
llvm-svn: 209008
show more ...
|
#
9750ce7e |
| 16-May-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm API change.
llvm-svn: 208984
|
#
b0f2f146 |
| 15-May-2014 |
Hans Wennborg <hans@hanshq.net> |
Allow dllimport/dllexport on inline functions and adjust the linkage.
This is a step towards handling these attributes on classes (PR11170).
Differential Revision: http://reviews.llvm.org/D3772
ll
Allow dllimport/dllexport on inline functions and adjust the linkage.
This is a step towards handling these attributes on classes (PR11170).
Differential Revision: http://reviews.llvm.org/D3772
llvm-svn: 208925
show more ...
|
#
1a3a0747 |
| 14-May-2014 |
Hans Wennborg <hans@hanshq.net> |
Rename CodeGenModule::getLLVMLinkageforDeclarator -> getLLVMLinkageForDeclarator
No functionality change.
llvm-svn: 208808
|
#
ee076a27 |
| 13-May-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm API change.
llvm-svn: 208717
|
#
e735b2ba |
| 09-May-2014 |
James Molloy <james.molloy@arm.com> |
Pacify bots again - turns out my checkout was slightly polluted when I was reverting a olista01s change, and this pollution made it upstream during the revert checkin :/ Sorryemacs -nw lib/CodeGen/Co
Pacify bots again - turns out my checkout was slightly polluted when I was reverting a olista01s change, and this pollution made it upstream during the revert checkin :/ Sorryemacs -nw lib/CodeGen/CodeGenModule.cpp
llvm-svn: 208426
show more ...
|