#
f988d006 |
| 06-Jun-2014 |
Alp Toker <alp@nuanti.com> |
Revert "Revert "Devise a package-private means to determine the LLVM version string""
We probably just need to touch LLVM's configure this time to work around the totally inadequate Makefile build s
Revert "Revert "Devise a package-private means to determine the LLVM version string""
We probably just need to touch LLVM's configure this time to work around the totally inadequate Makefile build server integration.
This reverts commit r210314.
llvm-svn: 210320
show more ...
|
#
27f333d3 |
| 06-Jun-2014 |
Alp Toker <alp@nuanti.com> |
Revert "Devise a package-private means to determine the LLVM version string"
This didn't work out on the build servers. Investigating
This reverts commit r210313.
llvm-svn: 210314
|
#
420d7ccb |
| 06-Jun-2014 |
Alp Toker <alp@nuanti.com> |
Devise a package-private means to determine the LLVM version string
This will unbreak clang vendor builds as a follow-up to r210238, now that we can't poke into LLVM's private config.h (nor should t
Devise a package-private means to determine the LLVM version string
This will unbreak clang vendor builds as a follow-up to r210238, now that we can't poke into LLVM's private config.h (nor should the string be exposed by llvm-config.h).
This hopefully removes for good the last include of LLVM's config.h.
llvm-svn: 210313
show more ...
|
#
1d257e1d |
| 04-Jun-2014 |
Alp Toker <alp@nuanti.com> |
Remove the last remaining llvm/Config/config.h includes
This corrects long-standing misuses of LLVM's internal config.h.
In most cases the public llvm-config.h header was intended and we can now re
Remove the last remaining llvm/Config/config.h includes
This corrects long-standing misuses of LLVM's internal config.h.
In most cases the public llvm-config.h header was intended and we can now remove the old hacks thanks to LLVM r210144.
The config.h header is private, won't be installed and should no longer be included by clang or other modules.
llvm-svn: 210145
show more ...
|
#
ea04672c |
| 03-Jun-2014 |
Alp Toker <alp@nuanti.com> |
Fix leak from r210059
Also revert r210096 which temporarily disabled the test while this was being investigated.
llvm-svn: 210115
|
#
49a2790f |
| 22-May-2014 |
Craig Topper <craig.topper@gmail.com> |
[C++11] Use 'nullptr'. Frontend edition.
llvm-svn: 209389
|
#
b671e34c |
| 21-May-2014 |
Alp Toker <alp@nuanti.com> |
SourceManager: Use setMainFileID() consistently
Eliminate createMainFileID() / createMainFileIDForMemBuffer() utility functions. These didn't add much convenience and conflated two distinct operatio
SourceManager: Use setMainFileID() consistently
Eliminate createMainFileID() / createMainFileIDForMemBuffer() utility functions. These didn't add much convenience and conflated two distinct operations.
This change makes things easier to follow by providing a consistent interface and getting rid of a bunch of cast-to-voids.
llvm-svn: 209266
show more ...
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1 |
|
#
c95e5648 |
| 08-May-2014 |
Ben Langmuir <blangmuir@apple.com> |
Switch Wmodule-build to a remark
On reflection, this is better despite the missing command-line handling bits for remarks. Making this a remark makes it much clearer that this is purely information
Switch Wmodule-build to a remark
On reflection, this is better despite the missing command-line handling bits for remarks. Making this a remark makes it much clearer that this is purely informational and avoids the negative connotations of a 'warning'.
llvm-svn: 208367
show more ...
|
#
824285ec |
| 08-May-2014 |
Nico Weber <nicolasweber@gmx.de> |
Let ASTReader optionally delete its ASTDeserializationListener.
Use this to fix the leak of DeserializedDeclsDumper and DeserializedDeclsChecker in FrontendAction (found by LSan), PR19560.
The "del
Let ASTReader optionally delete its ASTDeserializationListener.
Use this to fix the leak of DeserializedDeclsDumper and DeserializedDeclsChecker in FrontendAction (found by LSan), PR19560.
The "delete this" bool is necessary because both PCHGenerator and ASTUnit return the same object from both getDeserializationListener() and getASTMutationListener(), so ASTReader can't just have a unique_ptr.
It's also not possible to just let FrontendAction (or CompilerInstance) own these listeners due to lifetime issues (see comments on PR19560).
Finally, ASTDeserializationListener can't easily be refcounted, since several of the current listeners are allocated on the stack.
Having this bool isn't ideal, but it's a pattern that's used in other places in the codebase too, and it seems better than leaking.
llvm-svn: 208277
show more ...
|
#
1ecf750e |
| 05-May-2014 |
Ben Langmuir <blangmuir@apple.com> |
Add -Wmodule-build to make it easy to see when modules are (re)built
Warning is default ignore, and not in -Wall.
llvm-svn: 207975
|
#
527040e0 |
| 05-May-2014 |
Ben Langmuir <blangmuir@apple.com> |
Make module self-import an error
Ideally, importing Foo.a from Foo.b would "do the right thing", but until it does, this patch makes it an error rather than allow it to silently be ignored.
llvm-sv
Make module self-import an error
Ideally, importing Foo.a from Foo.b would "do the right thing", but until it does, this patch makes it an error rather than allow it to silently be ignored.
llvm-svn: 207948
show more ...
|
#
08043437 |
| 03-May-2014 |
Alp Toker <alp@nuanti.com> |
Eliminate ASTContext's DelayInitialization flag
Having various possible states of initialization following construction doesn't add value here.
Also remove the unused size_reserve parameter.
llvm-
Eliminate ASTContext's DelayInitialization flag
Having various possible states of initialization following construction doesn't add value here.
Also remove the unused size_reserve parameter.
llvm-svn: 207897
show more ...
|
#
9663780e |
| 02-May-2014 |
Alp Toker <alp@nuanti.com> |
Reformat code following Preprocessor constructor updates
Landing this separately to make the previous commits easy to follow at home.
llvm-svn: 207826
|
#
1ae02f68 |
| 02-May-2014 |
Alp Toker <alp@nuanti.com> |
Factor TargetInfo pointer/DelayInitialization bool pair out of Preprocessor ctor
The Preprocessor::Initialize() function already offers a clear interface to achieve this, further reducing the confus
Factor TargetInfo pointer/DelayInitialization bool pair out of Preprocessor ctor
The Preprocessor::Initialize() function already offers a clear interface to achieve this, further reducing the confusing number of states a newly constructed preprocessor can have.
llvm-svn: 207825
show more ...
|
#
23aa3532 |
| 02-May-2014 |
Alp Toker <alp@nuanti.com> |
Remove unused IncrProcessing parameter from Preprocessor ctor
Preprocessor::enableIncrementalProcessing() provides a consistent interface to enable the feature.
llvm-svn: 207824
|
#
f24d9c91 |
| 28-Apr-2014 |
Justin Bogner <mail@justinbogner.com> |
[cleanup] Fix an 80-column violation
llvm-svn: 207446
|
Revision tags: llvmorg-3.4.1, llvmorg-3.4.1-rc2 |
|
#
2d94bbb0 |
| 23-Apr-2014 |
John Thompson <John.Thompson.JTSoftware@gmail.com> |
Quick fix for layering that broke shared library build.
llvm-svn: 207011
|
#
e0a5afe8 |
| 23-Apr-2014 |
John Thompson <John.Thompson.JTSoftware@gmail.com> |
Fix unused variable.
llvm-svn: 206981
|
#
2255f2ce |
| 23-Apr-2014 |
John Thompson <John.Thompson.JTSoftware@gmail.com> |
Initial implementation of -modules-earch-all option, for searching for symbols in non-imported modules.
llvm-svn: 206977
|
#
beee15e7 |
| 14-Apr-2014 |
Ben Langmuir <blangmuir@apple.com> |
Allow multiple modules with the same name to coexist in the module cache
To differentiate between two modules with the same name, we will consider the path the module map file that they are defined
Allow multiple modules with the same name to coexist in the module cache
To differentiate between two modules with the same name, we will consider the path the module map file that they are defined by* part of the ‘key’ for looking up the precompiled module (pcm file). Specifically, this patch renames the precompiled module (pcm) files from cache-path/<module hash>/Foo.pcm to cache-path/<module hash>/Foo-<hash of module map path>.pcm
In addition, I’ve taught the ASTReader to re-resolve the names of imported modules during module loading so that if the header search context changes between when a module was originally built and when it is loaded we can rebuild it if necessary. For example, if module A imports module B
first time: clang -I /path/to/A -I /path/to/B ...
second time: clang -I /path/to/A -I /different/path/to/B ...
will now rebuild A as expected.
* in the case of inferred modules, we use the module map file that allowed the inference, not the __inferred_module.map file, since the inferred file path is the same for every inferred module.
llvm-svn: 206201
show more ...
|
Revision tags: llvmorg-3.4.1-rc1 |
|
#
4382fe74 |
| 06-Apr-2014 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[Frontend] If the module file lock owner have died, try to get the lock again. Needs llvm r205683.
llvm-svn: 205684
|
#
dcf73861 |
| 12-Mar-2014 |
Ben Langmuir <blangmuir@apple.com> |
Add an option -fmodules-validate-system-headers
When enabled, always validate the system headers when loading a module. The end result of this is that when these headers change, we will notice and r
Add an option -fmodules-validate-system-headers
When enabled, always validate the system headers when loading a module. The end result of this is that when these headers change, we will notice and rebuild the module.
llvm-svn: 203630
show more ...
|
#
b8984329 |
| 07-Mar-2014 |
Ahmed Charles <ahmedcharles@gmail.com> |
Replace OwningPtr with std::unique_ptr.
This compiles cleanly with lldb/lld/clang-tools-extra/llvm.
llvm-svn: 203279
|
#
9a16beb8 |
| 07-Mar-2014 |
Ahmed Charles <ahmedcharles@gmail.com> |
Change OwningPtr::take() to OwningPtr::release().
This is a precursor to moving to std::unique_ptr.
llvm-svn: 203275
|
#
e1974dcd |
| 07-Mar-2014 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is TU_Prefix avoid warning for unused macros.
rdar://15034698
llvm-svn: 203213
|