[llvm] r266046 - Use StringSet instead of StringMap where it makes sense to in LTOCodeGenerator (NFC)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 11 23:33:47 PDT 2016
Author: mehdi_amini
Date: Tue Apr 12 01:33:44 2016
New Revision: 266046
URL: http://llvm.org/viewvc/llvm-project?rev=266046&view=rev
Log:
Use StringSet instead of StringMap where it makes sense to in LTOCodeGenerator (NFC)
From: Mehdi Amini <mehdi.amini at apple.com>
Modified:
llvm/trunk/include/llvm/LTO/LTOCodeGenerator.h
Modified: llvm/trunk/include/llvm/LTO/LTOCodeGenerator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LTO/LTOCodeGenerator.h?rev=266046&r1=266045&r2=266046&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LTO/LTOCodeGenerator.h (original)
+++ llvm/trunk/include/llvm/LTO/LTOCodeGenerator.h Tue Apr 12 01:33:44 2016
@@ -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;
More information about the llvm-commits
mailing list