diff options
author | dim <dim@FreeBSD.org> | 2015-06-21 14:00:56 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-06-21 14:00:56 +0000 |
commit | 9dd834653b811ad20382e98a87dff824980c9916 (patch) | |
tree | a764184c2fc9486979b074250b013a0937ee64e5 /tools/arcmt-test/arcmt-test.cpp | |
parent | bb9760db9b86e93a638ed430d0a14785f7ff9064 (diff) | |
download | FreeBSD-src-9dd834653b811ad20382e98a87dff824980c9916.zip FreeBSD-src-9dd834653b811ad20382e98a87dff824980c9916.tar.gz |
Vendor import of clang trunk r240225:
https://llvm.org/svn/llvm-project/cfe/trunk@240225
Diffstat (limited to 'tools/arcmt-test/arcmt-test.cpp')
-rw-r--r-- | tools/arcmt-test/arcmt-test.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/arcmt-test/arcmt-test.cpp b/tools/arcmt-test/arcmt-test.cpp index 7be4ed6..c269e01 100644 --- a/tools/arcmt-test/arcmt-test.cpp +++ b/tools/arcmt-test/arcmt-test.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +#include "clang/Frontend/PCHContainerOperations.h" #include "clang/ARCMigrate/ARCMT.h" #include "clang/Frontend/ASTUnit.h" #include "clang/Frontend/TextDiagnosticPrinter.h" @@ -130,7 +131,8 @@ static bool checkForMigration(StringRef resourcesPath, if (!CI.getLangOpts()->ObjC1) return false; - arcmt::checkForManualIssues(CI, CI.getFrontendOpts().Inputs[0], + arcmt::checkForManualIssues(CI, CI.getFrontendOpts().Inputs[0], + std::make_shared<RawPCHContainerOperations>(), Diags->getClient()); return Diags->getClient()->getNumErrors() > 0; } @@ -169,7 +171,8 @@ static bool performTransformations(StringRef resourcesPath, if (!origCI.getLangOpts()->ObjC1) return false; - MigrationProcess migration(origCI, DiagClient); + MigrationProcess migration( + origCI, std::make_shared<RawPCHContainerOperations>(), DiagClient); std::vector<TransformFn> transforms = arcmt::getAllTransformations(origCI.getLangOpts()->getGC(), |