[PATCH] D67014: [mips] Switch to the `.text` section after emitting asm file preamble
Simon Atanasyan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 03:23:23 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL370735: [mips] Switch to the `.text` section after emitting asm file preamble (authored by atanasyan, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D67014?vs=218135&id=218425#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67014/new/
https://reviews.llvm.org/D67014
Files:
llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
llvm/trunk/test/CodeGen/Mips/start-asm-file.ll
Index: llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
===================================================================
--- llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
+++ llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
@@ -56,6 +56,7 @@
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetMachine.h"
#include <cassert>
#include <cstdint>
@@ -821,6 +822,9 @@
// option has changed the default (i.e. FPXX) and omit it otherwise.
if (ABI.IsO32() && (!STI.useOddSPReg() || STI.isABI_FPXX()))
TS.emitDirectiveModuleOddSPReg();
+
+ // Switch to the .text section.
+ OutStreamer->SwitchSection(getObjFileLowering().getTextSection());
}
void MipsAsmPrinter::emitInlineAsmStart() const {
Index: llvm/trunk/test/CodeGen/Mips/start-asm-file.ll
===================================================================
--- llvm/trunk/test/CodeGen/Mips/start-asm-file.ll
+++ llvm/trunk/test/CodeGen/Mips/start-asm-file.ll
@@ -71,4 +71,5 @@
; CHECK: .section .mdebug.abi[[ABI]]
; CHECK: .nan [[NAN]]
+; CHECK: .text
; CHECK: .file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67014.218425.patch
Type: text/x-patch
Size: 1187 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190903/2c9871f9/attachment.bin>
More information about the llvm-commits
mailing list