diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-11-19 02:56:00 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-11-19 02:56:00 +0000 |
commit | 0356975cb2119af0343819383bd6db2464c65766 (patch) | |
tree | c9e8205fcf88eaefb8ad1b5a27301ebf5832042e /llvm/tools/opt/BreakpointPrinter.cpp | |
parent | 51a4511b72721080b7afe59cf9dd0bf3b9252fad (diff) | |
download | bcm5719-llvm-0356975cb2119af0343819383bd6db2464c65766.tar.gz bcm5719-llvm-0356975cb2119af0343819383bd6db2464c65766.zip |
Make StringSet::insert return pair<iterator, bool> like other self-associative containers
StringSet is still a bit dodgy in that it exposes the raw iterator of
the StringMap parent, which exposes the weird detail that StringSet
actually has a 'value'... but anyway, this is useful for a handful of
clients that want to reference the newly inserted/persistent string data
in the StringSet/Map/Entry/thing.
llvm-svn: 222302
Diffstat (limited to 'llvm/tools/opt/BreakpointPrinter.cpp')
-rw-r--r-- | llvm/tools/opt/BreakpointPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/opt/BreakpointPrinter.cpp b/llvm/tools/opt/BreakpointPrinter.cpp index 44f4a11773e..3cbc0ae50f1 100644 --- a/llvm/tools/opt/BreakpointPrinter.cpp +++ b/llvm/tools/opt/BreakpointPrinter.cpp @@ -62,7 +62,7 @@ struct BreakpointPrinter : public ModulePass { continue; getContextName(SP.getContext().resolve(TypeIdentifierMap), Name); Name = Name + SP.getDisplayName().str(); - if (!Name.empty() && Processed.insert(Name)) { + if (!Name.empty() && Processed.insert(Name).second) { Out << Name << "\n"; } } |