@@ -455,7 +455,7 @@ class ASTWriter : public ASTDeserializationListener,
455
455
456
456
void WriteBlockInfoBlock ();
457
457
void WriteControlBlock (Preprocessor &PP, ASTContext &Context,
458
- StringRef isysroot, const std::string & OutputFile);
458
+ StringRef isysroot, StringRef OutputFile);
459
459
460
460
// / Write out the signature and diagnostic options, and return the signature.
461
461
ASTFileSignature writeUnhashedControlBlock (Preprocessor &PP,
@@ -533,8 +533,7 @@ class ASTWriter : public ASTDeserializationListener,
533
533
void WriteDecl (ASTContext &Context, Decl *D);
534
534
535
535
ASTFileSignature WriteASTCore (Sema &SemaRef, StringRef isysroot,
536
- const std::string &OutputFile,
537
- Module *WritingModule);
536
+ StringRef OutputFile, Module *WritingModule);
538
537
539
538
public:
540
539
// / Create a new precompiled header writer that outputs to
@@ -571,7 +570,7 @@ class ASTWriter : public ASTDeserializationListener,
571
570
// /
572
571
// / \return the module signature, which eventually will be a hash of
573
572
// / the module but currently is merely a random 32-bit number.
574
- ASTFileSignature WriteAST (Sema &SemaRef, const std::string & OutputFile,
573
+ ASTFileSignature WriteAST (Sema &SemaRef, StringRef OutputFile,
575
574
Module *WritingModule, StringRef isysroot,
576
575
bool hasErrors = false ,
577
576
bool ShouldCacheASTInMemory = false );
0 commit comments