summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-12 06:33:44 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-12 06:33:44 +0000
commitf02f4997f92955e721e50f66a1ba79ed02c3e9d5 (patch)
tree1496141658f32a6ae15fc8f82ac90e899913ccab
parent9154b88cfe5d9bac2326564ed9b13bfd41652310 (diff)
downloadbcm5719-llvm-f02f4997f92955e721e50f66a1ba79ed02c3e9d5.tar.gz
bcm5719-llvm-f02f4997f92955e721e50f66a1ba79ed02c3e9d5.zip
Use StringSet instead of StringMap where it makes sense to in LTOCodeGenerator (NFC)
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266046
-rw-r--r--llvm/include/llvm/LTO/LTOCodeGenerator.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/include/llvm/LTO/LTOCodeGenerator.h b/llvm/include/llvm/LTO/LTOCodeGenerator.h
index 53fd0ace0c8..11ea1253dd3 100644
--- a/llvm/include/llvm/LTO/LTOCodeGenerator.h
+++ b/llvm/include/llvm/LTO/LTOCodeGenerator.h
@@ -39,6 +39,7 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/StringMap.h"
+#include "llvm/ADT/StringSet.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Module.h"
#include "llvm/Target/TargetMachine.h"
@@ -185,8 +186,6 @@ private:
void emitError(const std::string &ErrMsg);
- typedef StringMap<uint8_t> StringSet;
-
LLVMContext &Context;
std::unique_ptr<Module> MergedModule;
std::unique_ptr<Linker> TheLinker;
@@ -194,8 +193,8 @@ private:
bool EmitDwarfDebugInfo = false;
bool ScopeRestrictionsDone = false;
Reloc::Model RelocModel = Reloc::Default;
- StringSet MustPreserveSymbols;
- StringSet AsmUndefinedRefs;
+ StringSet<> MustPreserveSymbols;
+ StringSet<> AsmUndefinedRefs;
StringMap<GlobalValue::LinkageTypes> ExternalSymbols;
std::vector<std::string> CodegenOptions;
std::string FeatureStr;
OpenPOWER on IntegriCloud