diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-11-29 18:12:59 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-11-29 18:12:59 +0000 |
commit | e9b3495465d69615a91b0f8002f4e40ff2c14a9a (patch) | |
tree | 23fc7819ae796224e0ccb0561541076bdb547884 /llvm/lib/TableGen/TGParser.h | |
parent | c3ee2c5a770f82154b81ad13cd946caf816fad72 (diff) | |
download | bcm5719-llvm-e9b3495465d69615a91b0f8002f4e40ff2c14a9a.tar.gz bcm5719-llvm-e9b3495465d69615a91b0f8002f4e40ff2c14a9a.zip |
Replace std::map<K, V*> with std::map<K, V> to handle ownership and deletion of the values.
llvm-svn: 222957
Diffstat (limited to 'llvm/lib/TableGen/TGParser.h')
-rw-r--r-- | llvm/lib/TableGen/TGParser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/TableGen/TGParser.h b/llvm/lib/TableGen/TGParser.h index 79994cbc1a6..45f418ab344 100644 --- a/llvm/lib/TableGen/TGParser.h +++ b/llvm/lib/TableGen/TGParser.h @@ -55,7 +55,7 @@ namespace llvm { class TGParser { TGLexer Lex; std::vector<std::vector<LetRecord> > LetStack; - std::map<std::string, MultiClass*> MultiClasses; + std::map<std::string, MultiClass> MultiClasses; /// Loops - Keep track of any foreach loops we are within. /// |