diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-27 06:17:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-27 06:17:14 +0000 |
commit | e346694a81cbead3289d11057111fba46aa30aae (patch) | |
tree | 5d6f2b3e804a1d954d227dd4c7a38677976d5677 /include | |
parent | 5fe575ff4fdefc1b003a009b1b9282526a26c237 (diff) | |
download | external_llvm-e346694a81cbead3289d11057111fba46aa30aae.zip external_llvm-e346694a81cbead3289d11057111fba46aa30aae.tar.gz external_llvm-e346694a81cbead3289d11057111fba46aa30aae.tar.bz2 |
Eliminate getNamed/getUnnamedSection, adding a new and unified getOrCreateSection
instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index d4a368e..9ddaf29 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -639,10 +639,9 @@ namespace llvm { explicit TargetAsmInfo(const TargetMachine &TM); virtual ~TargetAsmInfo(); - const Section* getNamedSection(const char *Name, - SectionKind::Kind K) const; - const Section* getUnnamedSection(const char *Directive, - SectionKind::Kind K) const; + const Section *getOrCreateSection(const char *Name, + bool isDirective, + SectionKind::Kind K) const; /// Measure the specified inline asm to determine an approximation of its /// length. |