llvm.org GIT mirror llvm / c212529
Merge in r167737: Make PPC TOC contents deterministic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168350 91177308-0d34-0410-b5e6-96231b3b80d8 Hal Finkel 6 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5353 #include "llvm/Support/ELF.h"
5454 #include "llvm/ADT/StringExtras.h"
5555 #include "llvm/ADT/SmallString.h"
56 #include "llvm/ADT/MapVector.h"
5657 using namespace llvm;
5758
5859 namespace {
5960 class PPCAsmPrinter : public AsmPrinter {
6061 protected:
61 DenseMap TOC;
62 MapVector TOC;
6263 const PPCSubtarget &Subtarget;
6364 uint64_t TOCLabelID;
6465 public:
464465 SectionKind::getReadOnly());
465466 OutStreamer.SwitchSection(Section);
466467
467 // FIXME: This is nondeterminstic!
468 for (DenseMap::iterator I = TOC.begin(),
468 for (MapVector::iterator I = TOC.begin(),
469469 E = TOC.end(); I != E; ++I) {
470470 OutStreamer.EmitLabel(I->second);
471471 MCSymbol *S = OutContext.GetOrCreateSymbol(I->first->getName());