Ignore:
Timestamp:
Feb 18, 2015, 3:56:47 PM (5 years ago)
Author:
nmedfort
Message:

Many memory deallocation fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/symbol_generator.h

    r4433 r4510  
    1111#include <string>
    1212#include <unordered_map>
     13#include <llvm/ADT/Twine.h>
     14#include <llvm/ADT/StringMap.h>
     15#include <llvm/Support/StringPool.h>
    1316
    1417namespace pablo {
     
    1922class SymbolGenerator {
    2023    friend class PabloBlock;
     24    using Twine = llvm::Twine;
    2125public:
    2226    typedef u_int64_t integer_t;
     
    2428    String * make(const std::string prefix, const bool generated = true);
    2529    Integer * getInteger(const integer_t value);
     30    SymbolGenerator();
    2631    ~SymbolGenerator();
    27 protected:
    28     SymbolGenerator();   
    2932private:
    30     std::unordered_map<std::string, unsigned>   mPrefixMap;   
     33    std::unordered_map<std::string, integer_t>  mPrefixMap;
    3134    std::unordered_map<std::string, String *>   mStringMap;
    3235    std::unordered_map<integer_t, Integer *>    mIntegerMap;
Note: See TracChangeset for help on using the changeset viewer.