r212381 - Remove leftovers of '-arcmt-modify-in-memory' from r133315
Alp Toker
alp at nuanti.com
Sat Jul 5 15:12:36 PDT 2014
Author: alp
Date: Sat Jul 5 17:12:36 2014
New Revision: 212381
URL: http://llvm.org/viewvc/llvm-project?rev=212381&view=rev
Log:
Remove leftovers of '-arcmt-modify-in-memory' from r133315
Modified:
cfe/trunk/include/clang/ARCMigrate/FileRemapper.h
cfe/trunk/lib/ARCMigrate/FileRemapper.cpp
Modified: cfe/trunk/include/clang/ARCMigrate/FileRemapper.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/ARCMigrate/FileRemapper.h?rev=212381&r1=212380&r2=212381&view=diff
==============================================================================
--- cfe/trunk/include/clang/ARCMigrate/FileRemapper.h (original)
+++ cfe/trunk/include/clang/ARCMigrate/FileRemapper.h Sat Jul 5 17:12:36 2014
@@ -56,8 +56,6 @@ public:
void applyMappings(PreprocessorOptions &PPOpts) const;
- void transferMappingsAndClear(PreprocessorOptions &PPOpts);
-
void clear(StringRef outputDir = StringRef());
private:
Modified: cfe/trunk/lib/ARCMigrate/FileRemapper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/FileRemapper.cpp?rev=212381&r1=212380&r2=212381&view=diff
==============================================================================
--- cfe/trunk/lib/ARCMigrate/FileRemapper.cpp (original)
+++ cfe/trunk/lib/ARCMigrate/FileRemapper.cpp Sat Jul 5 17:12:36 2014
@@ -206,22 +206,6 @@ void FileRemapper::applyMappings(Preproc
PPOpts.RetainRemappedFileBuffers = true;
}
-void FileRemapper::transferMappingsAndClear(PreprocessorOptions &PPOpts) {
- for (MappingsTy::iterator
- I = FromToMappings.begin(), E = FromToMappings.end(); I != E; ++I) {
- if (const FileEntry *FE = I->second.dyn_cast<const FileEntry *>()) {
- PPOpts.addRemappedFile(I->first->getName(), FE->getName());
- } else {
- llvm::MemoryBuffer *mem = I->second.get<llvm::MemoryBuffer *>();
- PPOpts.addRemappedFile(I->first->getName(), mem);
- }
- I->second = Target();
- }
-
- PPOpts.RetainRemappedFileBuffers = false;
- clear();
-}
-
void FileRemapper::remap(StringRef filePath, llvm::MemoryBuffer *memBuf) {
remap(getOriginalFile(filePath), memBuf);
}
More information about the cfe-commits
mailing list