diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-08 20:40:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-08 20:40:11 +0000 |
commit | 22772214de79aa1c5ca38c4fb1da137d8fb30a05 (patch) | |
tree | c34a68b9f15d76d8830fa5242a99afe3a55f5de6 /include | |
parent | f0559e4b242e85d4b9d1dd08758814c599bdce13 (diff) | |
download | external_llvm-22772214de79aa1c5ca38c4fb1da137d8fb30a05.zip external_llvm-22772214de79aa1c5ca38c4fb1da137d8fb30a05.tar.gz external_llvm-22772214de79aa1c5ca38c4fb1da137d8fb30a05.tar.bz2 |
remove the TargetLoweringObjectFileMachO::getMachoSection
api and update clients to use MCContext instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/TargetLoweringObjectFileImpl.h | 14 | ||||
-rw-r--r-- | include/llvm/MC/MCContext.h | 8 |
2 files changed, 8 insertions, 14 deletions
diff --git a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h index de7dad5..3fec424 100644 --- a/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h +++ b/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h @@ -127,20 +127,6 @@ public: virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, Mangler *) const; - /// getMachOSection - Return the MCSection for the specified mach-o section. - /// This requires the operands to be valid. - const MCSectionMachO *getMachOSection(StringRef Segment, - StringRef Section, - unsigned TypeAndAttributes, - SectionKind K) const { - return getMachOSection(Segment, Section, TypeAndAttributes, 0, K); - } - const MCSectionMachO *getMachOSection(StringRef Segment, - StringRef Section, - unsigned TypeAndAttributes, - unsigned Reserved2, - SectionKind K) const; - /// getTextCoalSection - Return the "__TEXT,__textcoal_nt" section we put weak /// text symbols into. const MCSection *getTextCoalSection() const { diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index a600f96..f1f0594 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -80,11 +80,19 @@ namespace llvm { /// @name Section Managment /// @{ + /// getMachOSection - Return the MCSection for the specified mach-o section. + /// This requires the operands to be valid. const MCSectionMachO *getMachOSection(StringRef Segment, StringRef Section, unsigned TypeAndAttributes, unsigned Reserved2, SectionKind K); + const MCSectionMachO *getMachOSection(StringRef Segment, + StringRef Section, + unsigned TypeAndAttributes, + SectionKind K) { + return getMachOSection(Segment, Section, TypeAndAttributes, 0, K); + } /// @} |