#
6e4695a4 |
| 06-May-2016 |
Ben Craig <ben.craig@codeaurora.org> |
Adding omitted column to invalid loc diagnostic.
note_fe_backend_invalid_loc expects three arguments (file, line, column), and will assert when only given two. The other two places in this file tha
Adding omitted column to invalid loc diagnostic.
note_fe_backend_invalid_loc expects three arguments (file, line, column), and will assert when only given two. The other two places in this file that use note_fe_backend_invalid_loc already supply the Column for the third parameter.
http://reviews.llvm.org/D19936
llvm-svn: 268732
show more ...
|
#
b1047490 |
| 20-Apr-2016 |
Teresa Johnson <tejohnson@google.com> |
Enable ODR uniquing of DITypes for ThinLTO backends
Summary: This is a follow-on to apply Duncan's new DIType ODR uniquing from r266549 and r266713 in more places.
When invoking ThinLTO backend com
Enable ODR uniquing of DITypes for ThinLTO backends
Summary: This is a follow-on to apply Duncan's new DIType ODR uniquing from r266549 and r266713 in more places.
When invoking ThinLTO backend compiles via clang (for a distributed build), invoke enableDebugTypeODRUniquing() before parsing the module.
Reviewers: dexonsmith, joker.eph
Subscribers: llvm-commits, joker.eph
Differential Revision: http://reviews.llvm.org/D19264
llvm-svn: 266852
show more ...
|
#
1390b447 |
| 06-Apr-2016 |
Tim Northover <tnorthover@apple.com> |
Restore slightly less dodgy diagnostic handler for inline asm
Turns out it was there mostly to prevent Clang asking people to report a bug. This time we report something to Clang's real diagnostics
Restore slightly less dodgy diagnostic handler for inline asm
Turns out it was there mostly to prevent Clang asking people to report a bug. This time we report something to Clang's real diagnostics handler so that it exits with something approximating a real error and tidies up after itself.
llvm-svn: 265592
show more ...
|
#
8c824a07 |
| 31-Mar-2016 |
Tim Northover <tnorthover@apple.com> |
Diagnostics: remove dodgy handler for bitcode inlineasm diagnostics.
Whatever crash it was there to present appears to have been fixed in the backend now, and it had the nasty side-effect of causing
Diagnostics: remove dodgy handler for bitcode inlineasm diagnostics.
Whatever crash it was there to present appears to have been fixed in the backend now, and it had the nasty side-effect of causing clang to exit(0) and leave a .o containing goodness knows what even when an error hit.
llvm-svn: 265038
show more ...
|
#
17d7d145 |
| 30-Mar-2016 |
Stephan Bergmann <sbergman@redhat.com> |
For MS ABI, emit dllexport friend functions defined inline in class
...as that is apparently what MSVC does. This is an updated version of r263738, which had to be reverted in r263740 due to test f
For MS ABI, emit dllexport friend functions defined inline in class
...as that is apparently what MSVC does. This is an updated version of r263738, which had to be reverted in r263740 due to test failures. The original version had erroneously emitted functions that are defined in class templates, too (see the updated "Handle friend functions" code in EmitDeferredDecls, lib/CodeGen/ModuleBuilder.cpp). (The updated tests needed to be split out into their own dllexport-ms-friend.cpp because of the CHECK-NOTs which would have interfered with subsequent CHECK-DAGs in dllexport.cpp.)
Differential Revision: http://reviews.llvm.org/D18430
llvm-svn: 264841
show more ...
|
#
4084504c |
| 17-Mar-2016 |
Reid Kleckner <rnk@google.com> |
Revert "For MS ABI, emit dllexport friend functions defined inline in class"
This reverts commit r263738.
This appears to cause a failure in CXX/temp/temp.decls/temp.friend/p1.cpp
llvm-svn: 263740
|
#
0f6caf66 |
| 17-Mar-2016 |
Reid Kleckner <rnk@google.com> |
For MS ABI, emit dllexport friend functions defined inline in class
Summary: ...as that is apparently what MSVC does
Reviewers: rnk
Patch by Stephan Bergmann
Differential Revision: http://reviews
For MS ABI, emit dllexport friend functions defined inline in class
Summary: ...as that is apparently what MSVC does
Reviewers: rnk
Patch by Stephan Bergmann
Differential Revision: http://reviews.llvm.org/D15267
llvm-svn: 263738
show more ...
|
#
02e3dd4b |
| 12-Mar-2016 |
Eric Christopher <echristo@gmail.com> |
Temporarily revert these patches:
commit 60d9845f6a037122d9be9a6d92d4de617ef45b04 Author: Mehdi Amini <mehdi.amini@apple.com> Date: Fri Mar 11 18:48:02 2016 +0000
Fix clang crash: when CodeGe
Temporarily revert these patches:
commit 60d9845f6a037122d9be9a6d92d4de617ef45b04 Author: Mehdi Amini <mehdi.amini@apple.com> Date: Fri Mar 11 18:48:02 2016 +0000
Fix clang crash: when CodeGenAction is initialized without a context, use the member and not the parameter
From: Mehdi Amini <mehdi.amini@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263273 91177308-0d34-0410-b5e6-96231b3b80d8
commit af7ce3bf04a75ad5124b457b805df26006bd215b Author: Mehdi Amini <mehdi.amini@apple.com> Date: Fri Mar 11 17:32:58 2016 +0000
Fix build: use -> with pointers and not .
Silly typo.
From: Mehdi Amini <mehdi.amini@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263267 91177308-0d34-0410-b5e6-96231b3b80d8
commit d0eea119192814954e7368c77d0dc5a9eeec1fbb Author: Mehdi Amini <mehdi.amini@apple.com> Date: Fri Mar 11 17:15:44 2016 +0000
Remove compile time PreserveName switch based on NDEBUG
Summary: Following r263086, we are now relying on a flag on the Context to discard Value names in release builds.
Reviewers: chandlerc
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D18024
From: Mehdi Amini <mehdi.amini@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263257 91177308-0d34-0410-b5e6-96231b3b80d8
until we can fix the Release builds.
This reverts commits 263257, 263267, 263273
llvm-svn: 263320
show more ...
|
#
4661b39e |
| 11-Mar-2016 |
Mehdi Amini <mehdi.amini@apple.com> |
Fix clang crash: when CodeGenAction is initialized without a context, use the member and not the parameter
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263273
|
#
7850f596 |
| 11-Mar-2016 |
Mehdi Amini <mehdi.amini@apple.com> |
Fix build: use -> with pointers and not .
Silly typo.
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263267
|
#
e803fc32 |
| 11-Mar-2016 |
Mehdi Amini <mehdi.amini@apple.com> |
Remove compile time PreserveName switch based on NDEBUG
Summary: Following r263086, we are now relying on a flag on the Context to discard Value names in release builds.
Reviewers: chandlerc
Subsc
Remove compile time PreserveName switch based on NDEBUG
Summary: Following r263086, we are now relying on a flag on the Context to discard Value names in release builds.
Reviewers: chandlerc
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D18024
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263257
show more ...
|
#
b214cbc7 |
| 04-Mar-2016 |
James Y Knight <jyknight@google.com> |
Make TargetInfo store an actual DataLayout instead of a string.
Use it to calculate UserLabelPrefix, instead of specifying it (often incorrectly).
Note that the *actual* user label prefix has alway
Make TargetInfo store an actual DataLayout instead of a string.
Use it to calculate UserLabelPrefix, instead of specifying it (often incorrectly).
Note that the *actual* user label prefix has always come from the DataLayout, and is handled within LLVM. The main thing clang's TargetInfo::UserLabelPrefix did was to set the #define value. Having these be different from each-other is just silly.
Differential Revision: http://reviews.llvm.org/D17183
llvm-svn: 262737
show more ...
|
Revision tags: llvmorg-3.8.0 |
|
#
cbbaeb13 |
| 02-Mar-2016 |
Nico Weber <nicolasweber@gmx.de> |
Serialize `#pragma detect_mismatch`.
This is like r262493, but for pragma detect_mismatch instead of pragma comment. The two pragmas have similar behavior, so use the same approach for both.
llvm-s
Serialize `#pragma detect_mismatch`.
This is like r262493, but for pragma detect_mismatch instead of pragma comment. The two pragmas have similar behavior, so use the same approach for both.
llvm-svn: 262506
show more ...
|
#
6622029d |
| 02-Mar-2016 |
Nico Weber <nicolasweber@gmx.de> |
Serialize `#pragma comment`.
`#pragma comment` was handled by Sema calling a function on ASTConsumer, and CodeGen then implementing this function and writing things to its output.
Instead, introduc
Serialize `#pragma comment`.
`#pragma comment` was handled by Sema calling a function on ASTConsumer, and CodeGen then implementing this function and writing things to its output.
Instead, introduce a PragmaCommentDecl AST node and hang one off the TranslationUnitDecl for every `#pragma comment` line, and then use the regular serialization machinery. (Since PragmaCommentDecl has codegen relevance, it's eagerly deserialized.)
http://reviews.llvm.org/D17799
llvm-svn: 262493
show more ...
|
Revision tags: llvmorg-3.8.0-rc3 |
|
#
41c1f79d |
| 18-Feb-2016 |
Serge Pavlov <sepavloff@gmail.com> |
Avoid double deletion in Clang driver.
Llvm module object is shared between CodeGenerator and BackendConsumer, in both classes it is stored as std::unique_ptr, which is not a good design solution an
Avoid double deletion in Clang driver.
Llvm module object is shared between CodeGenerator and BackendConsumer, in both classes it is stored as std::unique_ptr, which is not a good design solution and can cause double deletion error. Usually it does not occur because in BackendConsumer::HandleTranslationUnit the ownership of CodeGenerator over the module is taken away. If however this method is not called, the module is deleted twice and compiler crashes.
As the module owned by BackendConsumer is always the same as CodeGenerator has, pointer to llvm module can be removed from BackendGenerator.
Differential Revision: http://reviews.llvm.org/D15450
llvm-svn: 261222
show more ...
|
Revision tags: llvmorg-3.8.0-rc2 |
|
#
9181785a |
| 02-Feb-2016 |
Oliver Stannard <oliver.stannard@arm.com> |
Add backend dignostic printer for unsupported features
Re-commit of r258950 after fixing layering violation.
The related LLVM patch adds a backend diagnostic type for reporting unsupported features
Add backend dignostic printer for unsupported features
Re-commit of r258950 after fixing layering violation.
The related LLVM patch adds a backend diagnostic type for reporting unsupported features, this adds a printer for them to clang.
In the case where debug location information is not available, I've changed the printer to report the location as the first line of the function, rather than the closing brace, as the latter does not give the user any information. This also affects optimisation remarks.
llvm-svn: 259499
show more ...
|
#
92d4c328 |
| 28-Jan-2016 |
Oliver Stannard <oliver.stannard@arm.com> |
Revert r259036, it introduces a cyclic library dependency
llvm-svn: 259043
|
#
7a964fec |
| 28-Jan-2016 |
Oliver Stannard <oliver.stannard@arm.com> |
Add backend dignostic printer for unsupported features
Re-commit of r258950 after fixing layering violation.
Add backend dignostic printer for unsupported features
The related LLVM patch adds a ba
Add backend dignostic printer for unsupported features
Re-commit of r258950 after fixing layering violation.
Add backend dignostic printer for unsupported features
The related LLVM patch adds a backend diagnostic type for reporting unsupported features, this adds a printer for them to clang.
In the case where debug location information is not available, I've changed the printer to report the location as the first line of the function, rather than the closing brace, as the latter does not give the user any information. This also affects optimisation remarks.
Differential Revision: http://reviews.llvm.org/D16591
llvm-svn: 259036
show more ...
|
#
628a7a0a |
| 28-Jan-2016 |
NAKAMURA Takumi <geek4civic@gmail.com> |
Revert r258951 (and r258950), "Refactor backend diagnostics for unsupported features"
It broke layering violation in LLVMIR.
clang r258950 "Add backend dignostic printer for unsupported features" l
Revert r258951 (and r258950), "Refactor backend diagnostics for unsupported features"
It broke layering violation in LLVMIR.
clang r258950 "Add backend dignostic printer for unsupported features" llvm r258951 "Refactor backend diagnostics for unsupported features"
llvm-svn: 259016
show more ...
|
#
5e03a4b8 |
| 27-Jan-2016 |
Oliver Stannard <oliver.stannard@arm.com> |
Add backend dignostic printer for unsupported features
The related LLVM patch adds a backend diagnostic type for reporting unsupported features, this adds a printer for them to clang.
In the case w
Add backend dignostic printer for unsupported features
The related LLVM patch adds a backend diagnostic type for reporting unsupported features, this adds a printer for them to clang.
In the case where debug location information is not available, I've changed the printer to report the location as the first line of the function, rather than the closing brace, as the latter does not give the user any information. This also affects optimisation remarks.
Differential Revision: http://reviews.llvm.org/D16591
llvm-svn: 258950
show more ...
|
#
929025d1 |
| 26-Jan-2016 |
David Majnemer <david.majnemer@gmail.com> |
[MS ABI] Allow a member pointers' converted type to change
Member pointers in the MS ABI are tricky for a variety of reasons. The size of a member pointer is indeterminate until the program reaches
[MS ABI] Allow a member pointers' converted type to change
Member pointers in the MS ABI are tricky for a variety of reasons. The size of a member pointer is indeterminate until the program reaches a point where the representation is required to be known. However, *pointers* to member pointers may exist without knowing the pointee type's representation. In these cases, we synthesize an opaque LLVM type for the pointee type.
However, we can be in a situation where the underlying member pointer's representation became known mid-way through the program. To account for this, we attempted to manicure CodeGen's type-cache so that we can replace the opaque member pointer type with the real deal while leaving the pointer types unperturbed. This, unfortunately, is a problematic approach to take as we will violate CodeGen's invariants.
These violations are mostly harmless but let's do the right thing instead: invalidate the type-cache if a member pointer's LLVM representation changes.
This fixes PR26313.
llvm-svn: 258839
show more ...
|
Revision tags: llvmorg-3.8.0-rc1 |
|
#
dc134531 |
| 16-Jan-2016 |
Peter Collingbourne <peter@pcc.me.uk> |
Introduce -fsanitize-stats flag.
This is part of a new statistics gathering feature for the sanitizers. See clang/docs/SanitizerStats.rst for further info and docs.
Differential Revision: http://re
Introduce -fsanitize-stats flag.
This is part of a new statistics gathering feature for the sanitizers. See clang/docs/SanitizerStats.rst for further info and docs.
Differential Revision: http://reviews.llvm.org/D16175
llvm-svn: 257971
show more ...
|
#
4b4f4b90 |
| 08-Jan-2016 |
Teresa Johnson <tejohnson@google.com> |
[ThinLTO] Leverage new in-place renaming support
Due to the new in-place renaming support added in r257174, we no longer need to invoke ThinLTO global renaming from clang. It will be invoked on the
[ThinLTO] Leverage new in-place renaming support
Due to the new in-place renaming support added in r257174, we no longer need to invoke ThinLTO global renaming from clang. It will be invoked on the module in the FunctionImport pass (by an immediately following llvm commit).
As a result, we don't need to load the FunctionInfoIndex as early, so that is moved down into EmitAssemblyHelper::EmitAssembly.
llvm-svn: 257179
show more ...
|
#
433049f8 |
| 16-Dec-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm api change.
llvm-svn: 255843
|
#
8ce88a59 |
| 14-Dec-2015 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm api change.
llvm-svn: 255572
|