Skip to content

Commit

Permalink
Update to 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
swatanabe committed Sep 10, 2015
1 parent b729f89 commit a730927
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2232,7 +2232,7 @@ namespace {
const char * start = llvm::sys::path::filename(Parent).begin();
StringRef TestFile = StringRef(start, iter->end() - start);
const DirectoryLookup *CurDir = NULL;
const FileEntry *found = SemaRef.PP.getHeaderSearchInfo().LookupFile(TestFile, SourceLocation(), true, NULL, CurDir, NULL, NULL, NULL, NULL);
const FileEntry *found = SemaRef.PP.getHeaderSearchInfo().LookupFile(TestFile, SourceLocation(), true, NULL, CurDir, llvm::None, NULL, NULL, NULL);
if(found) {
if(found == SemaRef.SourceMgr.getFileManager().getFile(*iter)) {
relativeFilePath = TestFile;
Expand Down Expand Up @@ -2550,7 +2550,7 @@ namespace {
Sema newSema(S->getPreprocessor(), newContext, nullConsumer);
RemoveUPCTransform Trans(newSema, &Decls, fileid);
Decl *Result = Trans.TransformTranslationUnitDecl(top);
std::string error;
std::error_code error;
llvm::raw_fd_ostream OS(filename.c_str(), error, llvm::sys::fs::F_None);
OS << "#include <upcr.h>\n";

Expand Down Expand Up @@ -2601,8 +2601,8 @@ namespace {
class RemoveUPCAction : public clang::ASTFrontendAction {
public:
RemoveUPCAction(StringRef OutputFile, StringRef FileString, bool Lines) : filename(OutputFile), fileid(FileString), lines(Lines) {}
virtual clang::ASTConsumer *CreateASTConsumer(clang::CompilerInstance &Compiler, llvm::StringRef InFile) {
return new RemoveUPCConsumer(filename, fileid, lines);
virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(clang::CompilerInstance &Compiler, llvm::StringRef InFile) {
return std::unique_ptr<ASTConsumer>(new RemoveUPCConsumer(filename, fileid, lines));
}
std::string filename;
std::string fileid;
Expand Down

0 comments on commit a730927

Please sign in to comment.