diff options
author | Jack Carter <jack.carter@imgtec.com> | 2013-11-19 01:25:18 +0000 |
---|---|---|
committer | Jack Carter <jack.carter@imgtec.com> | 2013-11-19 01:25:18 +0000 |
commit | e53969b4758274ee833ce3acef37134bcf6554ea (patch) | |
tree | 13b40eb198c3e8d2f94d5637c3cf04a0eb979004 /lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp | |
parent | 354362524a72b3fa43a6c09380b7ae3b2380cbba (diff) | |
download | external_llvm-e53969b4758274ee833ce3acef37134bcf6554ea.zip external_llvm-e53969b4758274ee833ce3acef37134bcf6554ea.tar.gz external_llvm-e53969b4758274ee833ce3acef37134bcf6554ea.tar.bz2 |
[Mips] Support for MicroMips STO refactoring.
No true functional changes.
Change the "hack" name of emitMipsHackSTOCG to emitSymSTO.
Remove demonstration code in AsmParser for emitMipsHackSTOCG and
emitMipsHackELFFlags. The STO field is in an ELF symbol and is not
an explicit directive. That said, we are missing the compliment call
in AsmParser and that will need to be addressed soon.
XFAIL dummy tests for emitMipsHackELFFlags and emitMipsHackELFFlags.
These will built out with following patches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp')
-rw-r--r-- | lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp b/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp index 998a575..16f65b4 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp +++ b/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp @@ -20,9 +20,6 @@ using namespace llvm; -static cl::opt<bool> PrintHackDirectives("print-hack-directives", - cl::init(false), cl::Hidden); - // pin vtable to this file void MipsTargetStreamer::anchor() {} @@ -30,22 +27,12 @@ MipsTargetAsmStreamer::MipsTargetAsmStreamer(formatted_raw_ostream &OS) : OS(OS) {} void MipsTargetAsmStreamer::emitMipsHackELFFlags(unsigned Flags) { - if (!PrintHackDirectives) - return; + return; - OS << "\t.mips_hack_elf_flags 0x"; - OS.write_hex(Flags); - OS << '\n'; } -void MipsTargetAsmStreamer::emitMipsHackSTOCG(MCSymbol *Sym, unsigned Val) { - if (!PrintHackDirectives) - return; +void MipsTargetAsmStreamer::emitSymSTO(MCSymbol *Sym, unsigned Val) { + return; - OS << "\t.mips_hack_stocg "; - OS << Sym->getName(); - OS << ", "; - OS << Val; - OS << '\n'; } MipsTargetELFStreamer::MipsTargetELFStreamer() {} @@ -60,7 +47,7 @@ void MipsTargetELFStreamer::emitMipsHackELFFlags(unsigned Flags) { } // Set a symbol's STO flags -void MipsTargetELFStreamer::emitMipsHackSTOCG(MCSymbol *Sym, unsigned Val) { +void MipsTargetELFStreamer::emitSymSTO(MCSymbol *Sym, unsigned Val) { MCSymbolData &Data = getStreamer().getOrCreateSymbolData(Sym); // The "other" values are stored in the last 6 bits of the second byte // The traditional defines for STO values assume the full byte and thus |