[lld] r230219 - [ELF][Writer] Use llvm::StringMap instead

Shankar Easwaran shankare at codeaurora.org
Mon Feb 23 05:50:23 PST 2015


Author: shankare
Date: Mon Feb 23 07:50:23 2015
New Revision: 230219

URL: http://llvm.org/viewvc/llvm-project?rev=230219&view=rev
Log:
[ELF][Writer] Use llvm::StringMap instead

Cleanup.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h

Modified: lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h?rev=230219&r1=230218&r2=230219&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h Mon Feb 23 07:50:23 2015
@@ -148,7 +148,7 @@ public:
 
   // Output Sections contain the map of Sectionnames to a vector of sections,
   // that have been merged to form a single section
-  typedef std::map<StringRef, OutputSection<ELFT> *> OutputSectionMapT;
+  typedef llvm::StringMap<OutputSection<ELFT> *> OutputSectionMapT;
   typedef
       typename std::vector<OutputSection<ELFT> *>::iterator OutputSectionIter;
 





More information about the llvm-commits mailing list