|
@@ -52,14 +52,14 @@ public:
|
|
bool overwriteOriginal(DiagnosticsEngine &Diag,
|
|
bool overwriteOriginal(DiagnosticsEngine &Diag,
|
|
StringRef outputDir = StringRef());
|
|
StringRef outputDir = StringRef());
|
|
|
|
|
|
- void remap(StringRef filePath, llvm::MemoryBuffer *memBuf);
|
|
|
|
|
|
+ void remap(StringRef filePath, std::unique_ptr<llvm::MemoryBuffer> memBuf);
|
|
|
|
|
|
void applyMappings(PreprocessorOptions &PPOpts) const;
|
|
void applyMappings(PreprocessorOptions &PPOpts) const;
|
|
|
|
|
|
void clear(StringRef outputDir = StringRef());
|
|
void clear(StringRef outputDir = StringRef());
|
|
|
|
|
|
private:
|
|
private:
|
|
- void remap(const FileEntry *file, llvm::MemoryBuffer *memBuf);
|
|
|
|
|
|
+ void remap(const FileEntry *file, std::unique_ptr<llvm::MemoryBuffer> memBuf);
|
|
void remap(const FileEntry *file, const FileEntry *newfile);
|
|
void remap(const FileEntry *file, const FileEntry *newfile);
|
|
|
|
|
|
const FileEntry *getOriginalFile(StringRef filePath);
|
|
const FileEntry *getOriginalFile(StringRef filePath);
|