Skip to content
Snippets Groups Projects
  1. Mar 09, 2014
  2. Sep 12, 2013
  3. Jun 26, 2013
  4. Jun 17, 2013
  5. Jan 20, 2013
  6. Jan 16, 2013
  7. Jan 12, 2013
  8. Jan 02, 2013
  9. Dec 04, 2012
  10. Nov 27, 2012
  11. Oct 24, 2012
  12. Feb 20, 2012
  13. Feb 13, 2012
  14. Dec 22, 2011
  15. Nov 01, 2011
  16. Oct 07, 2011
  17. Oct 04, 2011
  18. Sep 27, 2011
  19. Aug 24, 2011
  20. May 23, 2011
  21. Mar 29, 2011
  22. Feb 20, 2011
  23. Feb 19, 2011
  24. Feb 18, 2011
  25. Nov 29, 2010
  26. Nov 24, 2010
  27. Nov 17, 2010
  28. Oct 30, 2010
  29. Aug 26, 2010
  30. Jul 24, 2010
  31. Jun 15, 2010
    • Daniel Dunbar's avatar
      Break Frontend's dependency on Rewrite, Checker and CodeGen in shared library configuration · 9b414d3e
      Daniel Dunbar authored
      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
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106010 91177308-0d34-0410-b5e6-96231b3b80d8
      9b414d3e
  32. Apr 20, 2010
  33. Apr 01, 2010
  34. Feb 25, 2010
    • Daniel Dunbar's avatar
      Add a minimal C interpreter example. · e2246286
      Daniel Dunbar authored
       - 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
      --
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97133 91177308-0d34-0410-b5e6-96231b3b80d8
      e2246286
Loading