aboutsummaryrefslogtreecommitdiff
path: root/Driver/RewriteMacros.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-05-09 22:43:24 +0000
committerChris Lattner <sabre@nondot.org>2008-05-09 22:43:24 +0000
commit0951052064e1c29c6ac9b873764fa6bfc2685817 (patch)
tree6eb116c26ff26fbef0f3304d4e4c9bab757aa0fd /Driver/RewriteMacros.cpp
parent1ffe281890f3cd7728316b45a1f3dd4d3120af7b (diff)
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
Diffstat (limited to 'Driver/RewriteMacros.cpp')
-rw-r--r--Driver/RewriteMacros.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/Driver/RewriteMacros.cpp b/Driver/RewriteMacros.cpp
index 4f75e8b267..8252df6571 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 @@ void clang::RewriteMacrosInInput(Preprocessor &PP,
} else {
fprintf(stderr, "No changes\n");
}
- // Emit metadata.
- *OutFile << ResultStr;
-#endif
-
}
-
-
-