diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/TargetLoweringObjectFileImpl.h | 6 | ||||
-rw-r--r-- | include/llvm/Target/TargetLoweringObjectFile.h | 8 | ||||
-rw-r--r-- | include/llvm/Target/TargetMachine.h | 4 |
3 files changed, 7 insertions, 11 deletions
diff --git a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h index 717ebdb2f7..4e90e141ce 100644 --- a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h +++ b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h @@ -53,7 +53,7 @@ public: virtual const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, TargetMachine &TM) const; + Mangler *Mang, const TargetMachine &TM) const; /// getTTypeGlobalReference - Return an MCExpr to use for a reference to the /// specified type info global variable from exception handling information. @@ -92,7 +92,7 @@ public: virtual const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, TargetMachine &TM) const; + Mangler *Mang, const TargetMachine &TM) const; virtual const MCSection * getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, @@ -131,7 +131,7 @@ public: virtual const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, TargetMachine &TM) const; + Mangler *Mang, const TargetMachine &TM) const; /// getDepLibFromLinkerOpt - Extract the dependent library name from a linker /// option string. Returns StringRef() if the option does not specify a library. diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h index e7e16ace89..5bf9a13563 100644 --- a/include/llvm/Target/TargetLoweringObjectFile.h +++ b/include/llvm/Target/TargetLoweringObjectFile.h @@ -38,7 +38,7 @@ class TargetLoweringObjectFile : public MCObjectFileInfo { const DataLayout *DL; TargetLoweringObjectFile( - const TargetLoweringObjectFile &) LLVM_DELETED_FUNCTION; + const TargetLoweringObjectFile&) LLVM_DELETED_FUNCTION; void operator=(const TargetLoweringObjectFile&) LLVM_DELETED_FUNCTION; public: @@ -91,14 +91,14 @@ public: /// be passed external (or available externally) globals. const MCSection *SectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, - TargetMachine &TM) const; + const TargetMachine &TM) const; /// SectionForGlobal - This method computes the appropriate section to emit /// the specified global variable or function definition. This should not /// be passed external (or available externally) globals. const MCSection *SectionForGlobal(const GlobalValue *GV, Mangler *Mang, - TargetMachine &TM) const { + const TargetMachine &TM) const { return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM); } @@ -167,7 +167,7 @@ public: protected: virtual const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, - Mangler *Mang, TargetMachine &TM) const; + Mangler *Mang, const TargetMachine &TM) const; }; } // end namespace llvm diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 7cbc87d9a8..c27ffdfcd7 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -88,7 +88,6 @@ protected: // Can only create subclasses. unsigned MCUseLoc : 1; unsigned MCUseCFI : 1; unsigned MCUseDwarfDirectory : 1; - unsigned DebugUseUniqueSections : 1; unsigned RequireStructuredCFG : 1; public: @@ -161,9 +160,6 @@ public: bool requiresStructuredCFG() const { return RequireStructuredCFG; } void setRequiresStructuredCFG(bool Value) { RequireStructuredCFG = Value; } - bool debugUseUniqueSections() const { return DebugUseUniqueSections; } - void setDebugUseUniqueSections(bool Value) { DebugUseUniqueSections = Value; } - /// hasMCRelaxAll - Check whether all machine code instructions should be /// relaxed. bool hasMCRelaxAll() const { return MCRelaxAll; } |