aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-08 20:43:12 +0000
committerChris Lattner <sabre@nondot.org>2009-08-08 20:43:12 +0000
commit5277b22687d3513dd29d5a9c8510cac740f933f6 (patch)
tree9e9e43f4b75db5fda4347245ebfac0fe152b1f27 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent17421d81fdbc94dbd8b3549b095303baaf52e689 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index a8cb465564..68cd4a49ab 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -99,7 +99,7 @@ void AsmPrinter::SwitchToSection(const MCSection *NS) {
// some magic assembler directive.
if (!NS->isDirective()) {
SmallString<32> FlagsStr;
- getObjFileLowering().getSectionFlagsAsString(NS->getKind(), FlagsStr);
+ getObjFileLowering().getSectionFlagsAsString(NS->getKind(), FlagsStr, *TAI);
O << TAI->getSwitchToSectionDirective()
<< CurrentSection->getName() << FlagsStr.c_str() << '\n';