diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-08 20:43:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-08 20:43:12 +0000 |
commit | c9ea8fddb258a847ddd76df0a8b6676b219d99d2 (patch) | |
tree | a462303342eaf927fe9018af8b52e27464301f14 /llvm/lib/Target/Sparc/SparcISelLowering.cpp | |
parent | dc6bccbaa6bcd79d661d66f4e76fdc74be3939df (diff) | |
download | bcm5719-llvm-c9ea8fddb258a847ddd76df0a8b6676b219d99d2.tar.gz bcm5719-llvm-c9ea8fddb258a847ddd76df0a8b6676b219d99d2.zip |
eliminate TargetLoweringObjectFileSparc in favor of a TAI hook.
A TAI hook is appropriate in this case because this is just an
asm syntax issue, not a semantic difference. TLOF should model
the semantics of the section.
llvm-svn: 78498
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcISelLowering.cpp | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp index 4f6a79ee535..b560b736d16 100644 --- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp +++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp @@ -549,34 +549,8 @@ static SPCC::CondCodes FPCondCCodeToFCC(ISD::CondCode CC) { } } -namespace { - -class TargetLoweringObjectFileSparc : public TargetLoweringObjectFileELF { -public: - void getSectionFlagsAsString(SectionKind Kind, - SmallVectorImpl<char> &Str) const { - if (Kind.isMergeableConst() || Kind.isMergeableCString()) - return TargetLoweringObjectFileELF::getSectionFlagsAsString(Kind, Str); - - // FIXME: Inefficient. - std::string Res; - if (!Kind.isMetadata()) - Res += ",#alloc"; - if (Kind.isText()) - Res += ",#execinstr"; - if (Kind.isWriteable()) - Res += ",#write"; - if (Kind.isThreadLocal()) - Res += ",#tls"; - - Str.append(Res.begin(), Res.end()); - } -}; - -} - SparcTargetLowering::SparcTargetLowering(TargetMachine &TM) - : TargetLowering(TM, new TargetLoweringObjectFileSparc()) { + : TargetLowering(TM, new TargetLoweringObjectFileELF()) { // Set up the register classes. addRegisterClass(MVT::i32, SP::IntRegsRegisterClass); |