diff options
author | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-03-26 14:52:22 +0000 |
---|---|---|
committer | Matheus Almeida <matheus.almeida@imgtec.com> | 2014-03-26 14:52:22 +0000 |
commit | a2cd009c51680abc576fbb2ccf45f673409c1bf6 (patch) | |
tree | 50b89dafdd2e104ad38ee3da2c2e5157fb7633e4 /llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp | |
parent | 3aa0e6a1f92a366a3213b6e8fb9665ec5739c1b3 (diff) | |
download | llvm-a2cd009c51680abc576fbb2ccf45f673409c1bf6.zip llvm-a2cd009c51680abc576fbb2ccf45f673409c1bf6.tar.gz llvm-a2cd009c51680abc576fbb2ccf45f673409c1bf6.tar.bz2 |
[mips] Add support to '.set mips64r2'.
The '.set mips64r2' directive enables the feature Mips:FeatureMips64r2
from assembly. Note that it doesn't modify the ELF header as opposed
to the use of -mips64r2 from the command-line. The reason for this
is that we want to be as compatible as possible with existing assemblers
like GAS.
llvm-svn: 204815
Diffstat (limited to 'llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp index afe501b..f21dbed3 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp @@ -105,6 +105,10 @@ void MipsTargetAsmStreamer::emitDirectiveSetMips32R2() { OS << "\t.set\tmips32r2\n"; } +void MipsTargetAsmStreamer::emitDirectiveSetMips64R2() { + OS << "\t.set\tmips64r2\n"; +} + void MipsTargetAsmStreamer::emitDirectiveSetDsp() { OS << "\t.set\tdsp\n"; } @@ -355,6 +359,10 @@ void MipsTargetELFStreamer::emitDirectiveSetMips32R2() { // No action required for ELF output. } +void MipsTargetELFStreamer::emitDirectiveSetMips64R2() { + // No action required for ELF output. +} + void MipsTargetELFStreamer::emitDirectiveSetDsp() { // No action required for ELF output. } |