aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-05-10 00:02:33 +0000
committerChris Lattner <sabre@nondot.org>2008-05-10 00:02:33 +0000
commit14196c099f214e27e1ff24e30e85182abd66825f (patch)
tree89b3d8e317cd9cb2b5edf7caba6cd5cbcaf12e11 /llvm/lib/Bitcode
parentacdde6f099e797ecc366cf39381fae632f2eff2e (diff)
downloadllvm-14196c099f214e27e1ff24e30e85182abd66825f.zip
llvm-14196c099f214e27e1ff24e30e85182abd66825f.tar.gz
llvm-14196c099f214e27e1ff24e30e85182abd66825f.tar.bz2
Implement -rewrite-macros, which is a crazy macro expander that expands
macros but doesn't expand #includes, remove comments, remove #defines etc. For example: ---- #include <stdio.h> #define bbaa #define funclike(x) x "a" x "b" x bbaa bbaa #if 1 funclike("gar") foo /*blah*/ bar bar #endif #if 0 funclike() #endif ---- rewrites to: ---- #include <stdio.h> #define bbaa #define funclike(x) x "a" x "b" x /*bbaa bbaa*/ #if 1 "gar" "a" "gar" "b" "gar"/*funclike*//*("gar")*/ foo /*blah*/ bar bar #endif #if 0 /*funclike()*/ #endif ---- llvm-svn: 50925
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions