summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-11-19 02:56:00 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-11-19 02:56:00 +0000
commit0356975cb2119af0343819383bd6db2464c65766 (patch)
treec9e8205fcf88eaefb8ad1b5a27301ebf5832042e /llvm/tools
parent51a4511b72721080b7afe59cf9dd0bf3b9252fad (diff)
downloadbcm5719-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')
-rw-r--r--llvm/tools/opt/BreakpointPrinter.cpp2
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";
}
}
OpenPOWER on IntegriCloud