| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
and CodeCompleteConsumer"
Aleksey Shlypanikov pointed out my mistake in migrating an explicit
unique_ptr to auto - I was expecting the function returned a unique_ptr,
but instead it returned a raw pointer - introducing a leak.
Thanks Aleksey!
This reapplies r291184, reverted in r291249.
llvm-svn: 291270
|
| |
|
|
|
|
|
|
|
| |
(should've rolled in to this revert of the CompilerInstance change in
the first place... anyway)
This reverts commit r291185.
llvm-svn: 291252
|
| |
|
|
| |
llvm-svn: 291185
|
| |
|
|
| |
llvm-svn: 218942
|
| |
|
|
| |
llvm-svn: 217168
|
| |
|
|
|
|
| |
This reinstates r215113.
llvm-svn: 216986
|
| |
|
|
|
|
|
| |
Returning a std::unique_ptr is more constrained. Thanks to David Blaikie for the
suggestion.
llvm-svn: 215979
|
| |
|
|
| |
llvm-svn: 215968
|
| |
|
|
|
|
| |
This reverts commit 215113 to match the reversion in llvm.
llvm-svn: 215156
|
| |
|
|
| |
llvm-svn: 215113
|
| |
|
|
|
|
| |
We don't support loading COFF files yet.
llvm-svn: 213893
|
| |
|
|
| |
llvm-svn: 213879
|
| |
|
|
| |
llvm-svn: 213869
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This flag is set by most other tools and avoids extra stat() calls. The
frontend will diagnose anyway as it performs the check atomically while opening
files at point of use.
We could probably make Driver::CheckInputsExist default to false and only
enable it in the main 'clang' binary, or even better only perform the checks if
we know the tool is external but that needs more thought.
llvm-svn: 212585
|
| |
|
|
|
|
|
|
|
|
| |
Update the strategy in r212083 to try JIT first and otherwise fall back to the
interpreter. This gives the best of both worlds and still builds fine with no
targets enabled.
Requires supporting changes from LLVM r212086.
llvm-svn: 212087
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes the build when no targets are selected, or no native target is built.
This also better matches up with the description/title of the example and
demonstrates how clang can be used to run C++ on constrained environments
without file IO or executable memory permissions (e.g. iOS apps).
A comment is added explaining how to extend the demo with JIT support as
needed.
llvm-svn: 212083
|
| |
|
|
|
|
|
|
|
|
|
|
| |
All callers were passing in "a.out" or garbage so a sensible default works fine
here as a cleanup.
This also brings about the possibility of adapting the value based on the
driver's compatibility mode in future.
The setting can still be changed via Driver::DefaultImageName as needed.
llvm-svn: 208926
|
| |
|
|
| |
llvm-svn: 203390
|
| |
|
|
| |
llvm-svn: 203389
|
| |
|
|
|
|
| |
Replace OwningArrayPtr with std::unique_ptr<T[]>.
llvm-svn: 203388
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This moves the code to Job.cpp, which seems like a more natural fit,
and replaces the "is this a JobList? is this a Command?" logic with
a virtual function call.
It also removes the code duplication between PrintJob and
PrintDiagnosticJob and simplifies the code a little.
There's no functionality change here, except that the Executable is
now always printed within quotes, whereas it would previously not be
quoted in crash reports, which I think was a bug.
Differential Revision: http://llvm-reviews.chandlerc.com/D1653
llvm-svn: 190620
|
| |
|
|
| |
llvm-svn: 184945
|
| |
|
|
| |
llvm-svn: 184915
|
| |
|
|
| |
llvm-svn: 184090
|
| |
|
|
|
|
|
| |
Also, it was the only reason that `argc` and `argv` were being passed
into createDiagnostics, so remove those parameters and clean up callers.
llvm-svn: 172945
|
| |
|
|
| |
llvm-svn: 172664
|
| |
|
|
|
|
| |
brought into 'clang' namespace by clang/Basic/LLVM.h
llvm-svn: 172323
|
| |
|
|
|
|
|
|
| |
reflect the migration in r171366.
Re-sort the #include lines to reflect the new paths.
llvm-svn: 171369
|
| |
|
|
| |
llvm-svn: 169241
|
| |
|
|
| |
llvm-svn: 168705
|
| |
|
|
| |
llvm-svn: 166510
|
| |
|
|
|
|
|
| |
The class name is long enough without the llvm:: added.
Also bring in RefCountedBase and RefCountedBaseVPTR.
llvm-svn: 150958
|
| |
|
|
|
|
| |
More cleanup after r149799.
llvm-svn: 150380
|
| |
|
|
|
|
| |
More cleanup after r149798.
llvm-svn: 150379
|
| |
|
|
| |
llvm-svn: 147195
|
| |
|
|
| |
llvm-svn: 143503
|
| |
|
|
|
|
| |
Windows. Patch by Dean Pavlekovic.
llvm-svn: 141324
|
| |
|
|
|
|
|
| |
This is old leftover cruft from the days when C++ was not yet ready
for prime time.
llvm-svn: 141063
|
| |
|
|
| |
llvm-svn: 140618
|
| |
|
|
| |
llvm-svn: 138451
|
| |
|
|
| |
llvm-svn: 131912
|
| |
|
|
| |
llvm-svn: 128470
|
| |
|
|
| |
llvm-svn: 126060
|
| |
|
|
| |
llvm-svn: 126050
|
| |
|
|
|
|
|
|
|
| |
This removes the final dependency edge from any lib outside of CodeGen
to core. As a result we can, and do, trim the dependency on core
from libclang, PrintFunctionNames, the unit tests and c-index-test.
While at it, review and trim other unneeded dependencies.
llvm-svn: 125820
|
| |
|
|
| |
llvm-svn: 120297
|
| |
|
|
| |
llvm-svn: 120069
|
| |
|
|
| |
llvm-svn: 119518
|
| |
|
|
|
|
| |
external linkage to make sure the lookup works on all platforms.
llvm-svn: 117813
|
| |
|
|
| |
llvm-svn: 117733
|