summaryrefslogtreecommitdiffstats
path: root/clang/examples/clang-interpreter/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix build break, replace take() with release().Ahmed Charles2014-03-091-1/+1
| | | | llvm-svn: 203390
* [C++11] Replace OwningPtr include with <memory>.Ahmed Charles2014-03-091-1/+1
| | | | llvm-svn: 203389
* [C++11] Remove the remaining uses of OwningPtr.Ahmed Charles2014-03-091-5/+5
| | | | | | Replace OwningArrayPtr with std::unique_ptr<T[]>. llvm-svn: 203388
* Move Compilation::PrintJob and PrintDiagnosticJob into Job::Print.Hans Wennborg2013-09-121-2/+2
| | | | | | | | | | | | | | | | | 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
* Remove unused header.Rafael Espindola2013-06-261-1/+0
| | | | llvm-svn: 184945
* Use llvm::sys::fs::getMainExecutable.Rafael Espindola2013-06-261-4/+5
| | | | llvm-svn: 184915
* Include PathV1.h only where it is used.Rafael Espindola2013-06-171-0/+1
| | | | llvm-svn: 184090
* Nuke SetUpBuildDumpLog.Sean Silva2013-01-201-1/+1
| | | | | | | 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
* Use getProcessTriple in clang-interpreter.Peter Collingbourne2013-01-161-2/+1
| | | | llvm-svn: 172664
* Remove useless 'llvm::' qualifier from names like StringRef and others that areDmitri Gribenko2013-01-121-1/+1
| | | | | | brought into 'clang' namespace by clang/Basic/LLVM.h llvm-svn: 172323
* Rewrite #includes for llvm/Foo.h to llvm/IR/Foo.h as appropriate toChandler Carruth2013-01-021-1/+1
| | | | | | | | reflect the migration in r171366. Re-sort the #include lines to reflect the new paths. llvm-svn: 171369
* Sort the #include lines for examples/...Chandler Carruth2012-12-041-7/+6
| | | | llvm-svn: 169241
* Fix examples.Rafael Espindola2012-11-271-1/+1
| | | | llvm-svn: 168705
* Update clang-interpreter exampleDouglas Gregor2012-10-231-3/+4
| | | | llvm-svn: 166510
* Basic: import IntrusiveRefCntPtr<> into clang namespaceDylan Noblesmith2012-02-201-1/+1
| | | | | | | The class name is long enough without the llvm:: added. Also bring in RefCountedBase and RefCountedBaseVPTR. llvm-svn: 150958
* drop more llvm:: prefixes on SmallString<>Dylan Noblesmith2012-02-131-1/+1
| | | | | | More cleanup after r149799. llvm-svn: 150380
* drop more llvm:: prefixes on OwningPtr<>Dylan Noblesmith2012-02-131-4/+4
| | | | | | More cleanup after r149798. llvm-svn: 150379
* remove unneeded config.h includesDylan Noblesmith2011-12-221-2/+0
| | | | llvm-svn: 147195
* rename getHostTriple into getDefaultTargetTriple in clangSebastian Pop2011-11-011-1/+1
| | | | llvm-svn: 143503
* Add missing include to clang-interpreter example, to make it work on ↵Eli Friedman2011-10-061-0/+1
| | | | | | Windows. Patch by Dean Pavlekovic. llvm-svn: 141324
* Rip out flags for controlling C++ "production mode" separately.Bob Wilson2011-10-041-2/+1
| | | | | | | This is old leftover cruft from the days when C++ was not yet ready for prime time. llvm-svn: 141063
* Fix examples for r140478. PR11021.Eli Friedman2011-09-271-1/+1
| | | | llvm-svn: 140618
* Match LLVM change: TargetRegistry and TargetSelect have been moved to Support.Evan Cheng2011-08-241-1/+1
| | | | llvm-svn: 138451
* Fix examples compile break due to rewrite of isa.Manuel Klimek2011-05-231-1/+1
| | | | llvm-svn: 131912
* Fixed build error.John Thompson2011-03-291-2/+1
| | | | llvm-svn: 128470
* Re-instate r125819 and r125820 with no functionality changePeter Collingbourne2011-02-191-2/+0
| | | | llvm-svn: 126060
* Revert 125820 and 125819 to fix PR9266.Rafael Espindola2011-02-191-0/+2
| | | | llvm-svn: 126050
* Move CompilerInstance::LLVMContext and LLVMContext ownership to CodeGenActionPeter Collingbourne2011-02-181-2/+0
| | | | | | | | | 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
* Merge System into Support.Michael J. Spencer2010-11-291-2/+2
| | | | llvm-svn: 120297
* Unbreak clang-interpreter. (Should there be some automated testing for this?)Eli Friedman2010-11-241-1/+2
| | | | llvm-svn: 120069
* Add a comment explaining why r117813 was needed.Dan Gohman2010-11-171-0/+5
| | | | llvm-svn: 119518
* Turns out that we may end up calling dladdr on GetExecutablePath, give it ↵Benjamin Kramer2010-10-301-1/+1
| | | | | | external linkage to make sure the lookup works on all platforms. llvm-svn: 117813
* These functions don't need external linkage.Dan Gohman2010-10-291-2/+2
| | | | llvm-svn: 117733
* Update clang-interpreter for recent DiagnosticClient ownership changes.Benjamin Kramer2010-08-261-2/+3
| | | | llvm-svn: 112181
* Fix clang-interpreter buildPeter Collingbourne2010-07-241-2/+1
| | | | llvm-svn: 109347
* Break Frontend's dependency on Rewrite, Checker and CodeGen in shared ↵Daniel Dunbar2010-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | library configuration Currently, all AST consumers are located in the Frontend library, meaning that in a shared library configuration, Frontend has a dependency on Rewrite, Checker and CodeGen. This is suboptimal for clients which only wish to make use of the frontend. CodeGen in particular introduces a large number of unwanted dependencies. This patch breaks the dependency by moving all AST consumers with dependencies on Rewrite, Checker and/or CodeGen to their respective libraries. The patch therefore introduces dependencies in the other direction (i.e. from Rewrite, Checker and CodeGen to Frontend). After applying this patch, Clang builds correctly using CMake and shared libraries ("cmake -DBUILD_SHARED_LIBS=ON"). N.B. This patch includes file renames which are indicated in the patch body. Changes in this revision of the patch: - Fixed some copy-paste mistakes in the header files - Modified certain aspects of the coding to comply with the LLVM Coding Standards llvm-svn: 106010
* Tip of the day: save before commit.Benjamin Kramer2010-04-201-2/+2
| | | | llvm-svn: 101896
* Fix -Wcast-qual warnings.Benjamin Kramer2010-04-201-3/+5
| | | | llvm-svn: 101895
* Driver: Add support for a CLANGXX_IS_PRODUCTION build variable, which enableDaniel Dunbar2010-04-011-1/+2
| | | | | | Clang++ support, even in "Production" mode (for testing purposes). llvm-svn: 100119
* Add a minimal C interpreter example.Daniel Dunbar2010-02-251-0/+152
- Demonstrates how to build a standalone tool which loads source code using the Driver and Frontend libraries, and then uses CodeGen and the JIT to actually execute the code. - Still more complicated than it should be, but hey its only 153 lines. :) -- ddunbar@ozzy:tmp$ cat hello.c #include <stdio.h> int main() { printf("hello world\n"); return 0; } ddunbar@ozzy:tmp$ clang-interpreter hello.c hello world -- llvm-svn: 97133
OpenPOWER on IntegriCloud