summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-profdata/llvm-profdata.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp
index 9ce0485fb13..9669c7dfa45 100644
--- a/llvm/tools/llvm-profdata/llvm-profdata.cpp
+++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp
@@ -11,6 +11,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/ProfileData/InstrProfReader.h"
@@ -27,8 +28,6 @@
#include "llvm/Support/Signals.h"
#include "llvm/Support/raw_ostream.h"
-#include <set>
-
using namespace llvm;
static void exitWithError(const Twine &Message,
@@ -103,7 +102,7 @@ static void mergeInstrProfile(const cl::list<std::string> &Inputs,
exitWithErrorCode(EC, OutputFilename);
InstrProfWriter Writer;
- std::set<std::error_code> WriterErrorCodes;
+ SmallSet<std::error_code, 4> WriterErrorCodes;
for (const auto &Filename : Inputs) {
auto ReaderOrErr = InstrProfReader::create(Filename);
if (std::error_code ec = ReaderOrErr.getError())
OpenPOWER on IntegriCloud