diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-18 05:35:23 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-18 05:35:23 +0000 |
commit | 71c41d95618b0f7ccb9cdf008801a88eeffe6e14 (patch) | |
tree | 89bdfbb06d8131c37e078bdf21fd480966e2b289 /clang/Driver/HTMLPrint.cpp | |
parent | a960be4bd435af48fc656391534d7ad5fab2700f (diff) | |
download | bcm5719-llvm-71c41d95618b0f7ccb9cdf008801a88eeffe6e14.tar.gz bcm5719-llvm-71c41d95618b0f7ccb9cdf008801a88eeffe6e14.zip |
Restore macro expansion for HTMLPrint by using the original Preprocessor.
This is a workaround until we figure out why a freshly create Preprocessor
doesn't expand macros from headers.
llvm-svn: 49897
Diffstat (limited to 'clang/Driver/HTMLPrint.cpp')
-rw-r--r-- | clang/Driver/HTMLPrint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Driver/HTMLPrint.cpp b/clang/Driver/HTMLPrint.cpp index ba9cd9e4002..b1c4c6d998f 100644 --- a/clang/Driver/HTMLPrint.cpp +++ b/clang/Driver/HTMLPrint.cpp @@ -67,7 +67,7 @@ HTMLPrinter::~HTMLPrinter() { // for example. if (PP) html::SyntaxHighlight(R, FileID, *PP); - if (PPF) html::HighlightMacros(R, FileID, *PPF); + if (PPF) html::HighlightMacros(R, FileID, *PP); html::EscapeText(R, FileID, false, true); // Open the output. |