summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index 426598d0df7..694c201cbe8 100644
--- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -322,7 +322,6 @@ class MipsAsmParser : public MCTargetAsmParser {
bool parseDirectiveSet();
bool parseDirectiveOption();
bool parseInsnDirective();
- bool parseRSectionDirective(StringRef Section);
bool parseSSectionDirective(StringRef Section, unsigned Type);
bool parseSetAtDirective();
@@ -6953,23 +6952,6 @@ bool MipsAsmParser::parseInsnDirective() {
return false;
}
-/// parseRSectionDirective
-/// ::= .rdata
-bool MipsAsmParser::parseRSectionDirective(StringRef Section) {
- // If this is not the end of the statement, report an error.
- if (getLexer().isNot(AsmToken::EndOfStatement)) {
- reportParseError("unexpected token, expected end of statement");
- return false;
- }
-
- MCSection *ELFSection =
- getContext().getELFSection(Section, ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
- getParser().getStreamer().SwitchSection(ELFSection);
-
- getParser().Lex(); // Eat EndOfStatement token.
- return false;
-}
-
/// parseSSectionDirective
/// ::= .sbss
/// ::= .sdata
@@ -7517,10 +7499,6 @@ bool MipsAsmParser::ParseDirective(AsmToken DirectiveID) {
parseInsnDirective();
return false;
}
- if (IDVal == ".rdata") {
- parseRSectionDirective(".rodata");
- return false;
- }
if (IDVal == ".sbss") {
parseSSectionDirective(IDVal, ELF::SHT_NOBITS);
return false;
OpenPOWER on IntegriCloud