Ignore:
Timestamp:
Mar 8, 2016, 3:15:25 PM (3 years ago)
Author:
hongpum
Message:

Refine path representation and default CacheDir?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/object_cache.h

    r4962 r4964  
    77#include <llvm/Support/MemoryBuffer.h>
    88#include <llvm/ExecutionEngine/ObjectCache.h>
     9#include <llvm/ADT/SmallString.h>
    910
    1011class ICGrepObjectCache : public llvm::ObjectCache {
    1112    public:
    12         ICGrepObjectCache(const std::string& CacheDir);
     13        ICGrepObjectCache(const std::string &dir);
     14        ICGrepObjectCache();
    1315        virtual ~ICGrepObjectCache();
    1416
     
    1719
    1820    private:
    19         std::string CacheDir;
     21        const static size_t mPathInitLength = 256;
     22        typedef llvm::SmallString<mPathInitLength> Path;
     23        Path CacheDir;
    2024
    21         bool getCacheFilename(const std::string &ModID, std::string &CacheName);
     25        bool getCacheFilename(const std::string &ModID, Path &CacheName);
    2226};
    2327
Note: See TracChangeset for help on using the changeset viewer.