diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-03 06:18:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-03 06:18:30 +0000 |
commit | 7765306eef752f506f6d2720de53dc14197b3cfc (patch) | |
tree | d64ca1a631fb70b9e9e54b5d13256e6fa19848ce /lib/CodeGen | |
parent | 93ed96f75fa6d5f07748c2608d66cd7fb28012b9 (diff) | |
download | external_llvm-7765306eef752f506f6d2720de53dc14197b3cfc.tar.gz external_llvm-7765306eef752f506f6d2720de53dc14197b3cfc.tar.bz2 external_llvm-7765306eef752f506f6d2720de53dc14197b3cfc.zip |
make MachineModuleInfoMachO hold non-const MCSymbol*'s instead
of const ones. non-const ones aren't very useful, because you can't
even, say, emit them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/MachineModuleInfoImpls.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/MachineModuleInfoImpls.cpp b/lib/CodeGen/MachineModuleInfoImpls.cpp index 7a6292910f..837890669b 100644 --- a/lib/CodeGen/MachineModuleInfoImpls.cpp +++ b/lib/CodeGen/MachineModuleInfoImpls.cpp @@ -26,17 +26,17 @@ void MachineModuleInfoMachO::Anchor() {} static int SortSymbolPair(const void *LHS, const void *RHS) { const MCSymbol *LHSS = - ((const std::pair<const MCSymbol*, const MCSymbol*>*)LHS)->first; + ((const std::pair<MCSymbol*, MCSymbol*>*)LHS)->first; const MCSymbol *RHSS = - ((const std::pair<const MCSymbol*, const MCSymbol*>*)RHS)->first; + ((const std::pair<MCSymbol*, MCSymbol*>*)RHS)->first; return LHSS->getName().compare(RHSS->getName()); } /// GetSortedStubs - Return the entries from a DenseMap in a deterministic /// sorted orer. MachineModuleInfoMachO::SymbolListTy -MachineModuleInfoMachO::GetSortedStubs(const DenseMap<const MCSymbol*, - const MCSymbol*> &Map) { +MachineModuleInfoMachO::GetSortedStubs(const DenseMap<MCSymbol*, + MCSymbol*> &Map) { MachineModuleInfoMachO::SymbolListTy List(Map.begin(), Map.end()); if (!List.empty()) qsort(&List[0], List.size(), sizeof(List[0]), SortSymbolPair); |