summaryrefslogtreecommitdiff
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-08-13 23:30:21 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-08-13 23:30:21 +0000
commitfdf229eda95a542fc34d5182e1a91a22789ba122 (patch)
tree08f88c07f62f402320663b559c9f558a75849877 /include/llvm/Target
parent0e275dc53880a7f14f8b8c83cc6e0290a215492d (diff)
downloadllvm-fdf229eda95a542fc34d5182e1a91a22789ba122.tar.gz
llvm-fdf229eda95a542fc34d5182e1a91a22789ba122.tar.bz2
llvm-fdf229eda95a542fc34d5182e1a91a22789ba122.tar.xz
Remove HasCrazyBSS and add a flag in TAI to indicate that '.section'
must be emitted for PowerPC-Linux '.bss' section git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h8
-rw-r--r--include/llvm/Target/TargetLoweringObjectFile.h7
2 files changed, 9 insertions, 6 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index 2654025af2..cb0e346a61 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -164,6 +164,11 @@ namespace llvm {
/// Style" syntax for section switching ("#alloc,#write" etc) instead of the
/// normal ELF syntax (,"a,w") in .section directives.
bool SunStyleELFSectionSwitchSyntax; // Defaults to false.
+
+ /// UsesELFSectionDirectiveForBSS - This is true if this target uses ELF
+ /// '.section' directive before the '.bss' one. It's used for PPC/Linux
+ /// which doesn't support the '.bss' directive only.
+ bool UsesELFSectionDirectiveForBSS; // Defaults to false.
//===--- Alignment Information ----------------------------------------===//
@@ -336,6 +341,9 @@ namespace llvm {
return SunStyleELFSectionSwitchSyntax;
}
+ bool usesELFSectionDirectiveForBSS() const {
+ return UsesELFSectionDirectiveForBSS;
+ }
// Accessors.
//
diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h
index 2ee6d72ad4..2264d36df9 100644
--- a/include/llvm/Target/TargetLoweringObjectFile.h
+++ b/include/llvm/Target/TargetLoweringObjectFile.h
@@ -183,7 +183,6 @@ protected:
class TargetLoweringObjectFileELF : public TargetLoweringObjectFile {
- bool HasCrazyBSS;
mutable void *UniquingMap;
protected:
/// TLSDataSection - Section directive for Thread Local data.
@@ -209,13 +208,9 @@ protected:
unsigned Flags, SectionKind Kind,
bool IsExplicit = false) const;
public:
- TargetLoweringObjectFileELF(// FIXME: REMOVE AFTER UNIQUING IS FIXED.
- bool hasCrazyBSS = false)
- : HasCrazyBSS(hasCrazyBSS), UniquingMap(0) {}
-
+ TargetLoweringObjectFileELF() : UniquingMap(0) {}
~TargetLoweringObjectFileELF();
-
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
/// getSectionForConstant - Given a constant with the SectionKind, return a