summaryrefslogtreecommitdiffstats
path: root/clang/examples/clang-interpreter
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove a goofy CMake hack and use the standard CMake facilities toChandler Carruth2012-06-211-28/+31
| | | | | | | | | express library-level dependencies within Clang. This is no more verbose really, and plays nicer with the rest of the CMake facilities. It should also have no change in functionality. llvm-svn: 158888
* Remove clangIndex reference from clang-interpreter CMake buildDouglas Gregor2012-04-131-1/+0
| | | | llvm-svn: 154674
* clang-interpreter/Makefile: [PR12313] Update USEDLIBS to add clangEdit.NAKAMURA Takumi2012-03-211-1/+2
| | | | llvm-svn: 153167
* 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 support for lazily linking bitcode files (using a newPeter Collingbourne2011-10-302-1/+2
| | | | | | | -mlink-bitcode-file flag), and more generally llvm::Modules, before running optimisations. llvm-svn: 143314
* 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
* Put Parse before Sema on the link line since parse depends on sema.Nick Lewycky2011-06-011-2/+3
| | | | | | Also reflow these lines to fit in 80-col. llvm-svn: 132379
* Fix examples compile break due to rewrite of isa.Manuel Klimek2011-05-231-1/+1
| | | | llvm-svn: 131912
* Fix Makefile build of examples/clang-interpreter.Nico Weber2011-04-301-1/+1
| | | | llvm-svn: 130576
* 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
* [analyzer] Introduce libclangStaticAnalyzerFrontend and move ↵Argyrios Kyrtzidis2011-02-142-1/+2
| | | | | | Checkers/AnalysisConsumer.cpp into Frontend lib. llvm-svn: 125499
* CMake: LLVM_NO_RTTI must be obsolete now!NAKAMURA Takumi2011-02-101-2/+0
| | | | llvm-svn: 125275
* Chris Lattner has strong opinions about directoryTed Kremenek2010-12-232-3/+3
| | | | | | | | | | | | layout. :) Rename the 'EntoSA' directories to 'StaticAnalyzer'. Internally we will still use the 'ento' namespace for the analyzer engine (unless there are further sabre rattlings...). llvm-svn: 122514
* Rename headers: 'clang/GR' 'clang/EntoSA' andTed Kremenek2010-12-232-3/+3
| | | | | | update Makefile. llvm-svn: 122493
* [analyzer] Refactoring: Move checkers into lib/GR/Checkers and their own ↵Argyrios Kyrtzidis2010-12-222-1/+2
| | | | | | library, libclangGRCheckers llvm-svn: 122422
* [analyzer] Refactoring: lib/Checker -> lib/GR and libclangChecker -> ↵Argyrios Kyrtzidis2010-12-222-2/+2
| | | | | | libclangGRCore llvm-svn: 122421
* 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
* Revert "CMake: Update to use standard CMake dependency tracking facilities ↵Michael J. Spencer2010-09-131-18/+28
| | | | | | | | | | | | | instead" This reverts commit r113631 Conflicts: CMakeLists.txt lib/CodeGen/CMakeLists.txt llvm-svn: 113817
* CMake: Update to use standard CMake dependency tracking facilities insteadMichael J. Spencer2010-09-101-28/+18
| | | | | | of whatever we were using before... llvm-svn: 113631
* clang-interpreter: libFrontend depends on libSerialization. Fix linux build ↵Benjamin Kramer2010-08-262-2/+2
| | | | | | by changing the link order. llvm-svn: 112187
* Update clang-interpreter for recent DiagnosticClient ownership changes.Benjamin Kramer2010-08-261-2/+3
| | | | llvm-svn: 112181
* Add Serialization dependency to clang-interpreterPeter Collingbourne2010-08-242-3/+4
| | | | llvm-svn: 111874
* Fix clang-interpreter buildPeter Collingbourne2010-07-242-2/+2
| | | | 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
* Makefiles: Remove unnecessary early include of Makefile.config.Daniel Dunbar2010-06-081-5/+0
| | | | llvm-svn: 105640
* Makefiles: Set Clang CPP compiler flags in a single location, instead of ↵Daniel Dunbar2010-06-081-1/+0
| | | | | | scattered throughout the project Makefiles. llvm-svn: 105638
* Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.Daniel Dunbar2010-06-081-3/+3
| | | | | | - This eliminates most dependencies on how Clang is installed relative to LLVM. llvm-svn: 105637
* Teach the PrintFunctionNames example to be a proper module, so thatDouglas Gregor2010-06-081-0/+2
| | | | | | | Clang can load it as a plugin. Original fix by Troy D. Straszheim, which I extended with Darwin support. Fixes PR6801. llvm-svn: 105630
* Update LINK_COMPONENTS for examples.Daniel Dunbar2010-06-081-1/+1
| | | | llvm-svn: 105607
* 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
* Wire up Daniel's new spiffy C interpreter into the CMake build systemKovarththanan Rajaratnam2010-02-271-0/+30
| | | | llvm-svn: 97311
* Add commentKovarththanan Rajaratnam2010-02-271-0/+2
| | | | llvm-svn: 97309
* Add a minimal C interpreter example.Daniel Dunbar2010-02-253-0/+197
- 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