diff options
author | Eric Christopher <echristo@gmail.com> | 2014-01-28 00:49:26 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-01-28 00:49:26 +0000 |
commit | 1c2827cd6a5456126b9a8041642148279456f71a (patch) | |
tree | c4567e7cd9950e26721335db4567d1f7444b19d3 /include | |
parent | 2ddf01b64d1cc8b6e920405b4f847cf4077b1820 (diff) | |
download | llvm-1c2827cd6a5456126b9a8041642148279456f71a.tar.gz llvm-1c2827cd6a5456126b9a8041642148279456f71a.tar.bz2 llvm-1c2827cd6a5456126b9a8041642148279456f71a.tar.xz |
Revert r199871 and replace it with a simple check in the debug info
code to see if we're emitting a function into a non-default
text section. This is still a less-than-ideal solution, but more
contained than r199871 to determine whether or not we're emitting
code into an array of comdat sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200269 91177308-0d34-0410-b5e6-96231b3b80d8
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; } |