r347727 - [CodeGen] Fix included headers.

Richard Trieu via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 27 20:14:29 PST 2018


Author: rtrieu
Date: Tue Nov 27 20:14:29 2018
New Revision: 347727

URL: http://llvm.org/viewvc/llvm-project?rev=347727&view=rev
Log:
[CodeGen] Fix included headers.

Remove the included Parse header because CodeGen should not depend on Parse.
Instead, include the Lex headers that it needs instead.

Modified:
    cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp

Modified: cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp?rev=347727&r1=347726&r2=347727&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp (original)
+++ cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp Tue Nov 27 20:14:29 2018
@@ -14,7 +14,8 @@
 #include "MacroPPCallbacks.h"
 #include "CGDebugInfo.h"
 #include "clang/CodeGen/ModuleBuilder.h"
-#include "clang/Parse/Parser.h"
+#include "clang/Lex/MacroInfo.h"
+#include "clang/Lex/Preprocessor.h"
 
 using namespace clang;
 




More information about the cfe-commits mailing list