summaryrefslogtreecommitdiffstats
path: root/clang/examples/clang-interpreter/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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