make #if 0 code compile, even though it still isn't very useful.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50920 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/RewriteMacros.cpp b/Driver/RewriteMacros.cpp
index 4f75e8b..8252df6 100644
--- a/Driver/RewriteMacros.cpp
+++ b/Driver/RewriteMacros.cpp
@@ -23,20 +23,18 @@
using namespace clang;
/// RewriteMacrosInInput - Implement -rewrite-macros mode.
-void clang::RewriteMacrosInInput(Preprocessor &PP,
+void clang::RewriteMacrosInInput(Preprocessor &PP,const std::string &InFileName,
const std::string &OutFileName) {
SourceManager &SM = PP.getSourceManager();
Rewriter Rewrite;
Rewrite.setSourceMgr(SM);
-#if 0
-
// Get the ID and start/end of the main file.
unsigned MainFileID = SM.getMainFileID();
- const llvm::MemoryBuffer *MainBuf = SM.getBuffer(MainFileID);
- const char *MainFileStart = MainBuf->getBufferStart();
- const char *MainFileEnd = MainBuf->getBufferEnd();
+ //const llvm::MemoryBuffer *MainBuf = SM.getBuffer(MainFileID);
+ //const char *MainFileStart = MainBuf->getBufferStart();
+ //const char *MainFileEnd = MainBuf->getBufferEnd();
// Create the output file.
@@ -66,11 +64,4 @@
} else {
fprintf(stderr, "No changes\n");
}
- // Emit metadata.
- *OutFile << ResultStr;
-#endif
-
}
-
-
-