diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 6 | ||||
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 4 | ||||
-rw-r--r-- | include/llvm/Target/TargetInstrItineraries.h | 11 |
3 files changed, 11 insertions, 10 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index 8d0a34b..2cd4e23 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -265,7 +265,7 @@ public: /// getAnchorString - Return a string used to label this descriptor's anchor. /// - static const char *AnchorString; + static const char *const AnchorString; virtual const char *getAnchorString() const; #ifndef NDEBUG @@ -664,7 +664,7 @@ public: /// getAnchorString - Return a string used to label this descriptor's anchor. /// - static const char *AnchorString; + static const char *const AnchorString; virtual const char *getAnchorString() const; #ifndef NDEBUG @@ -701,7 +701,7 @@ public: /// getAnchorString - Return a string used to label this descriptor's anchor. /// - static const char *AnchorString; + static const char *const AnchorString; virtual const char *getAnchorString() const; #ifndef NDEBUG diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index e55c243..2f54696 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -388,7 +388,7 @@ namespace llvm { //===--- CBE Asm Translation Table -----------------------------------===// - const char** AsmTransCBE; // Defaults to empty + const char *const *AsmTransCBE; // Defaults to empty public: TargetAsmInfo(); @@ -664,7 +664,7 @@ namespace llvm { const char *getDwarfExceptionSection() const { return DwarfExceptionSection; } - const char** getAsmCBE() const { + const char *const *getAsmCBE() const { return AsmTransCBE; } }; diff --git a/include/llvm/Target/TargetInstrItineraries.h b/include/llvm/Target/TargetInstrItineraries.h index e4322a7..dbf2b65 100644 --- a/include/llvm/Target/TargetInstrItineraries.h +++ b/include/llvm/Target/TargetInstrItineraries.h @@ -47,14 +47,15 @@ struct InstrItinerary { // used by a target. // struct InstrItineraryData { - InstrStage *Stages; // Array of stages selected - InstrItinerary *Itineratries; // Array of itineraries selected + const InstrStage *Stages; // Array of stages selected + const InstrItinerary *Itineratries; // Array of itineraries selected // // Ctors. // InstrItineraryData() : Stages(0), Itineratries(0) {} - InstrItineraryData(InstrStage *S, InstrItinerary *I) : Stages(S), Itineratries(I) {} + InstrItineraryData(const InstrStage *S, const InstrItinerary *I) + : Stages(S), Itineratries(I) {} // // isEmpty - Returns true if there are no itineraries. @@ -64,7 +65,7 @@ struct InstrItineraryData { // // begin - Return the first stage of the itinerary. // - inline InstrStage *begin(unsigned ItinClassIndx) const { + inline const InstrStage *begin(unsigned ItinClassIndx) const { unsigned StageIdx = Itineratries[ItinClassIndx].First; return Stages + StageIdx; } @@ -72,7 +73,7 @@ struct InstrItineraryData { // // end - Return the last+1 stage of the itinerary. // - inline InstrStage *end(unsigned ItinClassIndx) const { + inline const InstrStage *end(unsigned ItinClassIndx) const { unsigned StageIdx = Itineratries[ItinClassIndx].Last; return Stages + StageIdx; } |