Use existing helper for adding a section. NFC.
[oota-llvm.git] / include / llvm / MC / MCContext.h
index fd0181e66ab0521768b3373ead92b5c15dec9c2a..9dbb7b382e6b7e333e7c9b83bb9f9169dc578168 100644 (file)
@@ -469,7 +469,7 @@ namespace llvm {
     void setGenDwarfFileNumber(unsigned FileNumber) {
       GenDwarfFileNumber = FileNumber;
     }
-    MapVector<const MCSection *, std::pair<MCSymbol *, MCSymbol *>> &
+    const MapVector<const MCSection *, std::pair<MCSymbol *, MCSymbol *>> &
     getGenDwarfSectionSyms() {
       return SectionStartEndSyms;
     }