Changeset 6212


Ignore:
Timestamp:
Nov 26, 2018, 1:14:28 PM (5 months ago)
Author:
nmedfort
Message:

Cache name issue fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/object_cache.cpp

    r6211 r6212  
    106106        sys::path::append(fileName, CACHE_PREFIX);
    107107        fileName.append(moduleId);
    108         fileName.append("." KERNEL_FILE_EXTENSION);
     108        fileName.append(KERNEL_FILE_EXTENSION);
    109109
    110110        auto kernelBuffer = MemoryBuffer::getFile(fileName, -1, false);
     
    125125                    }
    126126                }
    127                 sys::path::replace_extension(fileName, "." OBJECT_FILE_EXTENSION);
     127                sys::path::replace_extension(fileName, OBJECT_FILE_EXTENSION);
    128128                auto objectBuffer = MemoryBuffer::getFile(fileName.c_str(), -1, false);
    129129                if (LLVM_LIKELY(objectBuffer)) {
     
    134134                    kernel->prepareCachedKernel(idb);
    135135                    mCachedObject.emplace(moduleId, std::make_pair(m, std::move(objectBuffer.get())));
    136                     // update the modified time of the .kernel, .o and .sig files
     136                    // update the modified time of the .kernel, .o and .kernel files
    137137                    const auto access_time = currentTime();
    138138                    fs::last_write_time(fileName.c_str(), access_time);
    139                     sys::path::replace_extension(fileName, "." KERNEL_FILE_EXTENSION);
     139                    sys::path::replace_extension(fileName, KERNEL_FILE_EXTENSION);
    140140                    fs::last_write_time(fileName.c_str(), access_time);
    141141                    return true;
     
    172172        sys::path::append(objectName, CACHE_PREFIX);
    173173        objectName.append(moduleId);
    174         objectName.append("." OBJECT_FILE_EXTENSION);
     174        objectName.append(OBJECT_FILE_EXTENSION);
    175175
    176176        // Write the object code
     
    197197        }
    198198
    199         sys::path::replace_extension(objectName, "." KERNEL_FILE_EXTENSION);
     199        sys::path::replace_extension(objectName, KERNEL_FILE_EXTENSION);
    200200        raw_fd_ostream kernelFile(objectName.str(), EC, sys::fs::F_None);
    201201        WriteBitcodeToFile(H.get(), kernelFile);
Note: See TracChangeset for help on using the changeset viewer.