aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-26 06:26:55 +0000
committerChris Lattner <sabre@nondot.org>2009-07-26 06:26:55 +0000
commit5c2f789952ff315021afb10381f141f2ac3b1a6b (patch)
tree2ae0bbd9bc6de6fa917533c7992c7b7d69054f8f /include
parentf15327290e624472a7565ac5d022767a78912ab6 (diff)
downloadexternal_llvm-5c2f789952ff315021afb10381f141f2ac3b1a6b.zip
external_llvm-5c2f789952ff315021afb10381f141f2ac3b1a6b.tar.gz
external_llvm-5c2f789952ff315021afb10381f141f2ac3b1a6b.tar.bz2
simplify getSectionForMergableConstant to take a SectionKind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77134 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/DarwinTargetAsmInfo.h3
-rw-r--r--include/llvm/Target/ELFTargetAsmInfo.h2
-rw-r--r--include/llvm/Target/TargetAsmInfo.h3
3 files changed, 3 insertions, 5 deletions
diff --git a/include/llvm/Target/DarwinTargetAsmInfo.h b/include/llvm/Target/DarwinTargetAsmInfo.h
index 3b3b732..02f5834 100644
--- a/include/llvm/Target/DarwinTargetAsmInfo.h
+++ b/include/llvm/Target/DarwinTargetAsmInfo.h
@@ -40,8 +40,7 @@ namespace llvm {
Mangler *Mang) const;
- virtual const Section *
- getSectionForMergableConstant(uint64_t Size, unsigned ReloInfo) const;
+ virtual const Section *getSectionForMergableConstant(SectionKind Kind)const;
private:
const Section* MergeableStringSection(const GlobalVariable *GV) const;
diff --git a/include/llvm/Target/ELFTargetAsmInfo.h b/include/llvm/Target/ELFTargetAsmInfo.h
index 9d31faa..6744b49 100644
--- a/include/llvm/Target/ELFTargetAsmInfo.h
+++ b/include/llvm/Target/ELFTargetAsmInfo.h
@@ -29,7 +29,7 @@ namespace llvm {
/// specified size and relocation information, return a section that it
/// should be placed in.
virtual const Section *
- getSectionForMergableConstant(uint64_t Size, unsigned ReloInfo) const;
+ getSectionForMergableConstant(SectionKind Kind) const;
/// getFlagsForNamedSection - If this target wants to be able to infer
/// section flags based on the name of the section specified for a global
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index c5bfc4d..93f2a76 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -710,8 +710,7 @@ namespace llvm {
/// getSectionForMergableConstant - Given a mergable constant with the
/// specified size and relocation information, return a section that it
/// should be placed in.
- virtual const Section *
- getSectionForMergableConstant(uint64_t Size, unsigned ReloInfo) const;
+ virtual const Section *getSectionForMergableConstant(SectionKind Kind)const;
/// getSectionPrefixForUniqueGlobal - Return a string that we should prepend