summaryrefslogtreecommitdiff
path: root/include/llvm/Target/TargetLoweringObjectFile.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-13 00:05:07 +0000
committerChris Lattner <sabre@nondot.org>2009-08-13 00:05:07 +0000
commite309cfa0d8945af47dd798357549c815164d53d6 (patch)
treeaa661e69f705134465df11bcfbdc96ef0cfae626 /include/llvm/Target/TargetLoweringObjectFile.h
parent5dc47ff03975b9adde9dd833db2b646eb4295710 (diff)
downloadllvm-e309cfa0d8945af47dd798357549c815164d53d6.tar.gz
llvm-e309cfa0d8945af47dd798357549c815164d53d6.tar.bz2
llvm-e309cfa0d8945af47dd798357549c815164d53d6.tar.xz
reject invalid code like:
int x __attribute__((section("_foo, _bar"))) = 4; int y __attribute__((section("_foo, _bar, 4byte_literals"))) = 1; git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLoweringObjectFile.h')
-rw-r--r--include/llvm/Target/TargetLoweringObjectFile.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h
index cbb585e131..7f74c6b055 100644
--- a/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/include/llvm/Target/TargetLoweringObjectFile.h
@@ -241,6 +241,9 @@ class TargetLoweringObjectFileMachO : public TargetLoweringObjectFile {
const MCSection *FourByteConstantSection;
const MCSection *EightByteConstantSection;
const MCSection *SixteenByteConstantSection;
+
+ const MCSection *LazySymbolPointerSection;
+ const MCSection *NonLazySymbolPointerSection;
public:
TargetLoweringObjectFileMachO() : UniquingMap(0) {}
~TargetLoweringObjectFileMachO();
@@ -285,12 +288,15 @@ public:
/// getLazySymbolPointerSection - Return the section corresponding to
/// the .lazy_symbol_pointer directive.
- const MCSection *getLazySymbolPointerSection() const;
+ const MCSection *getLazySymbolPointerSection() const {
+ return LazySymbolPointerSection;
+ }
/// getNonLazySymbolPointerSection - Return the section corresponding to
/// the .non_lazy_symbol_pointer directive.
- const MCSection *getNonLazySymbolPointerSection() const;
-
+ const MCSection *getNonLazySymbolPointerSection() const {
+ return NonLazySymbolPointerSection;
+ }
};