summaryrefslogtreecommitdiffstats
path: root/clang/lib/Edit
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-12-04 07:27:05 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-12-04 07:27:05 +0000
commitf3d587ea7cade0d3ca857f88382031c6113c58fc (patch)
treec8ba28f26aabde8231220944ddc67daaa0ea5610 /clang/lib/Edit
parentd1c9031c9135f69d79eca81340f245ac38eaea10 (diff)
downloadbcm5719-llvm-f3d587ea7cade0d3ca857f88382031c6113c58fc.tar.gz
bcm5719-llvm-f3d587ea7cade0d3ca857f88382031c6113c58fc.zip
Refactor recording the preprocessor conditional directive regions out of
PreprocessingRecord and into its own class, PPConditionalDirectiveRecord. Decoupling allows a client to use the functionality of PPConditionalDirectiveRecord without needing a PreprocessingRecord. llvm-svn: 169229
Diffstat (limited to 'clang/lib/Edit')
-rw-r--r--clang/lib/Edit/Commit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Edit/Commit.cpp b/clang/lib/Edit/Commit.cpp
index 41c72e42e6a..3a9719ada07 100644
--- a/clang/lib/Edit/Commit.cpp
+++ b/clang/lib/Edit/Commit.cpp
@@ -10,7 +10,7 @@
#include "clang/Edit/Commit.h"
#include "clang/Edit/EditedSource.h"
#include "clang/Lex/Lexer.h"
-#include "clang/Lex/PreprocessingRecord.h"
+#include "clang/Lex/PPConditionalDirectiveRecord.h"
#include "clang/Basic/SourceManager.h"
using namespace clang;
@@ -37,7 +37,7 @@ CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const {
Commit::Commit(EditedSource &Editor)
: SourceMgr(Editor.getSourceManager()), LangOpts(Editor.getLangOpts()),
- PPRec(Editor.getPreprocessingRecord()),
+ PPRec(Editor.getPPCondDirectiveRecord()),
Editor(&Editor), IsCommitable(true) { }
bool Commit::insert(SourceLocation loc, StringRef text,
OpenPOWER on IntegriCloud